函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\audit_tree.c Create Date:2022-07-27 12:33:47
Last Modify:2022-05-22 16:43:11 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Call with group->mark_mutex held, releases it

函数原型:static int create_chunk(struct inode *inode, struct audit_tree *tree)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct audit_tree *tree
404  chunk等于alloc_chunk(1)
406  如果非chunk
407  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.
408  返回:负ENOMEM
411  mark等于alloc_mark()
412  如果非mark
413  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.
414  kfree(chunk)
415  返回:负ENOMEM
418  如果fsnotify_add_inode_mark_locked(mark, inode, 0)则
419  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.
420  fsnotify_put_mark(mark)
421  kfree(chunk)
422  返回:负ENOSPC
425  加自旋锁
426  如果goner
427  自旋锁解锁
428  Mark mark as detached, remove it from group list
429  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.
430  Free fsnotify mark
431  fsnotify_put_mark(mark)
432  kfree(chunk)
433  返回:0
435  replace_mark_chunk(mark, chunk)
436  index等于1U左移31位
437  owner等于tree
438  get_tree(tree)
439  添加链表项
440  如果非root
441  root等于chunk
442  添加链表项
444  key等于Function to return search key in our hash from inode.
449  hash_lock & mark->group->mark_mutex is held by caller
450  自旋锁解锁
451  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.
457  fsnotify_put_mark(mark)
458  返回:0
调用者
名称描述
tag_chunkhe first tagged inode becomes root of tree