函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\notify\inotify\inotify_user.c Create Date:2022-07-29 10:49:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:inotify_new_group

函数原型:static struct fsnotify_group *inotify_new_group(unsigned int max_events)

返回类型:struct fsnotify_group

参数:

类型参数名称
unsigned intmax_events
628  group等于Create a new fsnotify_group and hold a reference for the group returned.
629  如果是错误则返回:group
632  oevent等于开辟内存
633  如果此条件成立可能性小(为编译器优化)(!oevent)则
634  Trying to get rid of a group. Remove all marks, flush all events and release* the group reference.* Note that another thread calling fsnotify_clear_marks_by_group() may still* hold a ref to the group.
635  返回:错误号
637  Event we queue when the * notification list is too * full 等于fse
638  fsnotify_init_event( Event we queue when the * notification list is too * full , NULL)
639  mask等于Event queued overflowed
640  wd等于负1
641  sync_cookie等于0
642  name_len等于0
644  maximum events allowed on the list 等于max_events
645  memcg to charge allocations 等于get_mem_cgroup_from_mm: Obtain a reference on given mm_struct's memcg.*@mm: mm from which memcg should be extracted. It can be NULL.* Obtain a reference on mm->memcg and returns it if successful. Otherwise* root_mem_cgroup is returned
647  spin_lock_init( & idr_lock)
648  dr_init() - Initialise an IDR.*@idr: IDR handle.* Initialise a dynamically allocated IDR. To initialise a* statically allocated IDR, use DEFINE_IDR().
649  ucounts等于inc_ucount(current_user_ns(), current_euid(), UCOUNT_INOTIFY_INSTANCES)
653  如果非ucounts
654  Trying to get rid of a group. Remove all marks, flush all events and release* the group reference.* Note that another thread calling fsnotify_clear_marks_by_group() may still* hold a ref to the group.
655  返回:错误号
658  返回:group
调用者
名称描述
do_inotify_inity syscalls