Function report |
Source Code:kernel\audit_tree.c |
Create Date:2022-07-28 11:30:26 |
| Last Modify:2022-05-22 16:43:11 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:he first tagged inode becomes root of tree
Proto:static int tag_chunk(struct inode *inode, struct audit_tree *tree)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct inode * | inode | |
| struct audit_tree * | tree |
| 469 | mutex_lock( & protect marks_list ) |
| 470 | mark = Given a list of marks, find the mark associated with given group. If found* take a reference to that mark and return it, else return NULL. |
| 471 | If Not mark Then Return Call with group->mark_mutex held, releases it |
| 481 | old = mark_chunk(mark) |
| 490 | spin_unlock( & hash_lock) |
| 492 | chunk = alloc_chunk(count + 1) |
| 493 | If Not chunk Then |
| 495 | fsnotify_put_mark(mark) |
| 496 | Return -ENOMEM |
| 500 | If goner Then |
| 508 | index; upper bit indicates 'will prune' = count - 1 | 1U << 31 |
| 512 | If Not root Then |
| 520 | replace_chunk(chunk, old) |
| 521 | spin_unlock( & hash_lock) |
| 523 | fsnotify_put_mark(mark) |
| 526 | Return 0 |
| Name | Describe |
|---|---|
| tag_mount |
| 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 |