Function report |
Source Code:kernel\audit_tree.c |
Create Date:2022-07-28 11:30:22 |
| Last Modify:2022-05-22 16:43:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Call with group->mark_mutex held, releases it
Proto:static int create_chunk(struct inode *inode, struct audit_tree *tree)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct audit_tree * | tree |
| 404 | chunk = alloc_chunk(1) |
| 406 | If Not chunk Then |
| 408 | Return -ENOMEM |
| 411 | mark = alloc_mark() |
| 412 | If Not mark Then |
| 415 | Return -ENOMEM |
| 418 | If fsnotify_add_inode_mark_locked(mark, inode, 0) Then |
| 420 | fsnotify_put_mark(mark) |
| 422 | Return -ENOSPC |
| 426 | If goner Then |
| 435 | replace_mark_chunk(mark, chunk) |
| 436 | index = 1U << 31 |
| 440 | If Not root Then |
| 450 | spin_unlock( & hash_lock) |
| 457 | fsnotify_put_mark(mark) |
| 458 | Return 0 |
| Name | Describe |
|---|---|
| tag_chunk | he first tagged inode becomes root of tree |
| 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 |