函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-29 10:49:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:inotify_ioctl

函数原型:static long inotify_ioctl(struct file *file, unsigned int cmd, unsigned long arg)

返回类型:long

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
281  __userp
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  :cmd恒等于FIONREAD
292  加自旋锁
295  send_len加等于sizeof(structinotify_event)
296  send_len加等于round_event_name_len(fsn_event)
298  自旋锁解锁
299  ret等于put_user - Write a simple value into user space(send_len, (int__user * )p)
300  退出
317  返回:ret