Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-28 20:17:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:inotify_ioctl

Proto:static long inotify_ioctl(struct file *file, unsigned int cmd, unsigned long arg)

Type:long

Parameter:

TypeParameterName
struct file *file
unsigned intcmd
unsigned longarg
281  __user * p
282  ret = -ENOTTY
283  send_len = 0
285  group = needed for tty driver, and maybe others
286  p = arg
288  pr_debug("%s: group=%p cmd=%u\n", __func__, group, cmd)
291  Case cmd == FIONREAD
292  spin_lock( & protect the notification_list )
295  send_len += sizeof(structinotify_event)
296  send_len += round_event_name_len(fsn_event)
298  spin_unlock( & protect the notification_list )
299  ret = Write a simple value into user space(send_len, (int__user * )p)
300  Break
317  Return ret