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_DEFINE2

Proto:SYSCALL_DEFINE2(inotify_rm_watch, int, fd, __s32, wd)

Type:

Parameter:Nothing

767  ret = 0
769  f = fdget(fd)
770  If Value for the false possibility is greater at compile time(!file) Then Return -EBADF
774  ret = -EINVAL
775  If Value for the false possibility is greater at compile time(f_op != & inotify_fops) Then Go to out
778  group = needed for tty driver, and maybe others
780  ret = -EINVAL
781  i_mark = inotify_idr_find(group, wd)
782  If Value for the false possibility is greater at compile time(!i_mark) Then Go to out
785  ret = 0
787  fsnotify_destroy_mark( & fsn_mark, group)
790  fsnotify_put_mark( & fsn_mark)
792  out :
793  fdput(f)
794  Return ret