函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:round_event_name_len

函数原型:static int round_event_name_len(struct fsnotify_event *fsn_event)

返回类型:int

参数:

类型参数名称
struct fsnotify_event *fsn_event
119  event等于INOTIFY_E(fsn_event)
120  如果非name_len则返回:0
122  返回:undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(name_len + 1, sizeof(structinotify_event))
调用者
名称描述
get_one_eventGet an inotify_kernel_event if one exists and is small* enough to fit in "count". Return an error pointer if* not large enough.* Called with the group->notification_lock held.
copy_event_to_userCopy an event to user space, returning how much we copied.* We already checked that the event size is smaller than the* buffer we had in "get_one_event()" above.
inotify_ioctl