函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE3

函数原型:SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname, unsigned int, mask)

返回类型:

参数:

706  flags等于0
714  如果此条件成立可能性小(为编译器优化)(mask & ~ALL_INOTIFY_BITS)则返回:负EINVAL
721  如果此条件成立可能性小(为编译器优化)(!(mask & ALL_INOTIFY_BITS))则返回:负EINVAL
724  f等于fdget(fd)
725  如果此条件成立可能性小(为编译器优化)(!file)则返回:负EBADF
729  如果此条件成立可能性小(为编译器优化)((mask & add to the mask of an already existing watch ) && (mask & ly create watches ))则
730  ret等于负EINVAL
731  转到:fput_and_out
735  如果此条件成立可能性小(为编译器优化)(f_op != & inotify_fops)则
736  ret等于负EINVAL
737  转到:fput_and_out
740  如果非mask按位与don't follow a sym link 的值则flags或等于llow links at the end
742  如果mask按位与ly watch the path if it is a directory flags或等于quire a directory
745  ret等于d_inode - resolve a user-given path to a specific inode
747  如果ret则转到:fput_and_out
751  inode等于 Where the name belongs to - NULL is * negative
752  group等于 needed for tty driver, and maybe others
755  ret等于inotify_update_watch(group, inode, mask)
756  path_put - put a reference to a path*@path: path to put the reference to* Given a path decrement the reference count to the dentry and the vfsmount.
757  fput_and_out :
758  fdput(f)
759  返回:ret