函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:fanotify_ioctl

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

返回类型:long

参数:

类型参数名称
struct file *file
unsigned intcmd
unsigned longarg
497  __userp
498  ret等于负ENOTTY
499  send_len等于0
501  group等于 needed for tty driver, and maybe others
503  p等于arg
506  :cmd恒等于FIONREAD
507  加自旋锁
508  list_for_each_entry - iterate over list of given type*@pos: the type * to use as a loop cursor.*@head: the head for your list.*@member: the name of the list_head within the struct.(fsn_event, & list of event_holder this group needs to send to userspace , list)
509  send_len加等于Helper functions to deal with fanotify_event_metadata buffers
510  自旋锁解锁
511  ret等于put_user - Write a simple value into user space(send_len, (int__user * )p)
512  退出
515  返回:ret