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:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE3

Proto:SYSCALL_DEFINE3(inotify_add_watch, int, fd, const char __user *, pathname, unsigned int, mask)

Type:

Parameter:Nothing

706  flags = 0
714  If Value for the false possibility is greater at compile time(mask & ~ALL_INOTIFY_BITS) Then Return -EINVAL
721  If Value for the false possibility is greater at compile time(!(mask & ALL_INOTIFY_BITS)) Then Return -EINVAL
724  f = fdget(fd)
725  If Value for the false possibility is greater at compile time(!file) Then Return -EBADF
729  If Value for the false possibility is greater at compile time((mask & add to the mask of an already existing watch ) && (mask & ly create watches )) Then
730  ret = -EINVAL
731  Go to fput_and_out
735  If Value for the false possibility is greater at compile time(f_op != & inotify_fops) Then
736  ret = -EINVAL
737  Go to fput_and_out
740  If Not (mask & don't follow a sym link ) Then flags |= llow links at the end
742  If mask & ly watch the path if it is a directory Then flags |= quire a directory
745  ret = d_inode - resolve a user-given path to a specific inode
747  If ret Then Go to 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  Return ret