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

Name:round_event_name_len

Proto:static int round_event_name_len(struct fsnotify_event *fsn_event)

Type:int

Parameter:

TypeParameterName
struct fsnotify_event *fsn_event
119  event = INOTIFY_E(fsn_event)
120  If Not name_len Then Return 0
122  Return 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))
Caller
NameDescribe
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