函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\debugfs.c Create Date:2022-07-27 11:16:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:irq_debug_write

函数原型:static ssize_t irq_debug_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *user_buf
size_tcount
loff_t *ppos
184  desc等于s or device private pointer
185  char buf[8] = {0, }
188  size等于两数取小(buf的长度 - 1, count)
189  如果copy_from_user(buf, user_buf, size)则返回:负EFAULT
192  如果非字符串指定长度比较
197  err等于q_set_irqchip_state - set the state of a forwarded interrupt
199  如果非err则返回:count
206  总线上锁
207  raw_spin_lock_irqsave( & 自旋锁, flags)
209  如果irq_settings_is_level(desc)或istate按位与IRQS_NMI
211  err等于负EINVAL
212  否则
213  istate或等于IRQS_PENDING
215  err等于0
218  raw_spin_unlock_irqrestore( & 自旋锁, flags)
219  慢总线解锁
221  返回:如果errerr否则count
224  返回:count