Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\irq\debugfs.c Create Date:2022-07-28 10:16:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:irq_debug_write

Proto:static ssize_t irq_debug_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( size of buf - 1, count)
189  If copy_from_user(buf, user_buf, size) Then Return -EFAULT
192  If Not strncmp(buf, "trigger", size) Then
197  err = q_set_irqchip_state - set the state of a forwarded interrupt
199  If Not err Then Return count
206  Inline functions for support of irq chips on slow busses
207  raw_spin_lock_irqsave( & lock, flags)
211  err = -EINVAL
212  Else
213  istate |= IRQS_PENDING
215  err = 0
218  raw_spin_unlock_irqrestore( & lock, flags)
219  chip_bus_sync_unlock(desc)
221  Return If err Then err Else count
224  Return count