| Function report | 
| 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 activity | Download SCCT | Chinese | 
Name: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.
Proto:int fsnotify_add_mark_locked(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct fsnotify_mark * | mark | |
| fsnotify_connp_t * | connp | |
| unsigned int | type | |
| int | allow_dups | |
| __kernel_fsid_t * | fsid | 
| 641 | ret = 0 | 
| 643 | BUG_ON(!mutex_is_locked( & protect marks_list )) | 
| 655 | atomic_inc( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group ) | 
| 656 | fsnotify_get_mark(mark) | 
| 666 | Return ret | 
| 667 | err : | 
| 673 | atomic_dec( & 1 for each mark and 1 for not being * past the point of no return when freeing * a group ) | 
| 675 | fsnotify_put_mark(mark) | 
| 676 | Return ret | 
| Name | Describe | 
|---|---|
| fsnotify_add_mark | |
| fanotify_add_new_mark | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |