Function report |
Source Code:kernel\audit_watch.c |
Create Date:2022-07-28 11:29:00 |
| Last Modify:2020-03-17 17:15:07 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize a parent watch entry.
Proto:static struct audit_parent *audit_init_parent(struct path *path)
Type:struct audit_parent
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct path * | path |
| 142 | parent = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
| 143 | If Value for the false possibility is greater at compile time(!parent) Then Return ERR_PTR( - ENOMEM) |
| 150 | ret = fsnotify_add_inode_mark( & fsnotify mark on the inode , inode, 0) |
| 151 | If ret < 0 Then |
| 152 | audit_free_parent(parent) |
| 156 | Return parent |
| Name | Describe |
|---|---|
| audit_add_watch | Find a matching watch entry, or add this one.* Caller must hold audit_filter_mutex. |
| 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 |