Function report |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-28 20:23:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:check_for_busy_inodes
Proto:static int check_for_busy_inodes(struct super_block *sb, struct fscrypt_master_key *mk)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | |
| struct fscrypt_master_key * | mk |
| 667 | busy_count = 0 |
| 670 | spin_lock( & mk_decrypted_inodes_lock) |
| 673 | busy_count++ |
| 675 | If busy_count == 0 Then |
| 676 | spin_unlock( & mk_decrypted_inodes_lock) |
| 677 | Return 0 |
| 682 | struct inode * inode = ({ |
| 685 | })->ci_inode |
| 688 | spin_unlock( & mk_decrypted_inodes_lock) |
| 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 | Return -EBUSY |
| Name | Describe |
|---|---|
| try_to_lock_encrypted_files |
| 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 |