Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\fanotify\fanotify_user.c Create Date:2022-07-28 20:18:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fanotify_write

Proto:static ssize_t fanotify_write(struct file *file, const char __user *buf, size_t count, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *buf
size_tcount
loff_t *pos
416  struct fanotify_response response = {fd = - 1, response = - 1}
420  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_FANOTIFY_ACCESS_PERMISSIONS) Then Return -EINVAL
423  group = needed for tty driver, and maybe others
425  If count > size of response Then count = size of response
428  pr_debug("%s: group=%p count=%zu\n", __func__, group, count)
430  If copy_from_user( & response, buf, count) Then Return -EFAULT
433  ret = process_access_response(group, & response)
434  If ret < 0 Then count = ret
437  Return count