| 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:Add mark into proper place in given list of marks. These marks may be used* for the fsnotify backend to determine which event types should be delivered* to which group and for which inodes. These marks are ordered according to
Proto:static int fsnotify_add_mark_list(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 | 
| 547 | struct fsnotify_mark * lmark, * last = NULL | 
| 550 | err = 0 | 
| 552 | If WARN_ON(!fsnotify_valid_obj_type(type)) Then Return -EINVAL | 
| 556 | If fsid && WARN_ON_ONCE(!val[0] && !val[1]) Then Return -ENODEV | 
| 559 | restart : | 
| 562 | If Not conn Then | 
| 568 | Else if fsid && Not ( flags [lock] & FSNOTIFY_CONN_FLAG_HAS_FSID) Then | 
| 571 | smp_wmb() | 
| 573 | Else if fsid && flags [lock] & FSNOTIFY_CONN_FLAG_HAS_FSID && ( val[0] != val[0] || val[1] != val[1] ) Then | 
| 583 | pr_warn_ratelimited("%s: fsid mismatch on object of type %u: %x.%x != %x.%x\n", __func__, Type of object [lock] , val[0], val[1], val[0], val[1]) | 
| 588 | Go to out_err | 
| 592 | If hlist_empty( & list) Then | 
| 594 | Go to added | 
| 609 | If cmp >= 0 Then | 
| 618 | added : | 
| 625 | out_err : | 
| 626 | spin_unlock( & lock) | 
| 628 | Return err | 
| Name | Describe | 
|---|---|
| fsnotify_add_mark_locked | 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. | 
| 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 |