Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:fsnotify_add_mark

Proto:int fsnotify_add_mark(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid)

Type:int

Parameter:

TypeParameterName
struct fsnotify_mark *mark
fsnotify_connp_t *connp
unsigned inttype
intallow_dups
__kernel_fsid_t *fsid
683  group = Group this mark is for. Set on mark creation, stable until last ref * is dropped
685  mutex_lock( & protect marks_list )
686  ret = Attach an initialized mark to a given group and fs object.* These marks may be used for the fsnotify backend to determine which* event types should be delivered to which group.
687  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
688  Return ret