函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:check_for_busy_inodes

函数原型:static int check_for_busy_inodes(struct super_block *sb, struct fscrypt_master_key *mk)

返回类型:int

参数:

类型参数名称
struct super_block *sb
struct fscrypt_master_key *mk
667  busy_count等于0
670  加自旋锁
672  list_for_each - iterate over a list*@pos: the &struct list_head to use as a loop cursor.*@head: the head for your list.(pos, & List of inodes that were unlocked using this key. This allows the* inodes to be evicted efficiently if the key is removed.)
673  busy_count自加
675  如果busy_count恒等于0则
676  自旋锁解锁
677  返回:0
682  struct inode * inode = ({
685  __mptr等于链表后项
685  循环
685  当0循环
685  })->ci_inode
686  ino等于Stat data, not accessed from path walking
688  自旋锁解锁
690  fscrypt_warn(NULL, "%s: %zu inode(s) still busy after removing key with %s %*phN, including ino %lu", s_id, busy_count, master_key_spec_type( & For v1 policy keys: an arbitrary key descriptor which was assigned by* userspace (->descriptor).* For v2 policy keys: a cryptographic hash of this key (->identifier).), master_key_spec_len( & For v1 policy keys: an arbitrary key descriptor which was assigned by* userspace (->descriptor).* For v2 policy keys: a cryptographic hash of this key (->identifier).), (u8 * ) & u, ino)
695  返回:负EBUSY
调用者
名称描述
try_to_lock_encrypted_files