函数逻辑报告 |
Source Code:fs\notify\mark.c |
Create Date:2022-07-29 10:48:10 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称: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
函数原型:static int fsnotify_add_mark_list(struct fsnotify_mark *mark, fsnotify_connp_t *connp, unsigned int type, int allow_dups, __kernel_fsid_t *fsid)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| 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 | 如果WARN_ON(!fsnotify_valid_obj_type(type))则返回:负EINVAL |
| 556 | 如果fsid且WARN_ON_ONCE(!val[0] && !val[1])则返回:负ENODEV |
| 559 | restart : |
| 560 | 加自旋锁 |
| 562 | 如果非conn则 |
| 568 | 否则如果fsid且非 flags [lock] 按位与FSNOTIFY_CONN_FLAG_HAS_FSID的值则 |
| 571 | smp_wmb() |
| 573 | 否则如果fsid且 flags [lock] 按位与FSNOTIFY_CONN_FLAG_HAS_FSID且val[0]不等于val[0]或val[1]不等于val[1]的值则 |
| 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 | 转到:out_err |
| 592 | 如果hlist_empty( & list)则 |
| 593 | 添加哈希记录 |
| 594 | 转到:added |
| 609 | 如果cmp大于等于0则 |
| 618 | added : |
| 625 | out_err : |
| 626 | 自旋锁解锁 |
| 627 | 自旋锁解锁 |
| 628 | 返回:err |
| 名称 | 描述 |
|---|---|
| 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. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |