Function report |
Source Code:security\apparmor\label.c |
Create Date:2022-07-28 19:54:24 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:aa_label_alloc - allocate a label with a profile vector of @size length*@size: size of profile vector in the label*@proxy: proxy to use OR null if to allocate a new one*@gfp: memory allocation type* Returns: new label* else NULL if failed
Proto:struct aa_label *aa_label_alloc(int size, struct aa_proxy *proxy, gfp_t gfp)
Type:struct aa_label
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | size | |
| struct aa_proxy * | proxy | |
| gfp_t | gfp |
| 433 | new = 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). |
| 439 | If Not aa_label_init(new, size, gfp) Then Go to fail |
| 442 | If Not proxy Then |
| 446 | Else aa_get_proxy(proxy) |
| 451 | Return new |
| 453 | fail : |
| 456 | Return NULL |
| Name | Describe |
|---|---|
| vec_create_and_insert_label | quires sort and merge done first |
| aa_label_merge | aa_label_merge - attempt to insert new merged label of @a and @b*@ls: set of labels to insert label into (NOT NULL)*@a: label to merge with @b (NOT NULL)*@b: label to merge with @a (NOT NULL)*@gfp: memory allocation type* Requires: caller to hold valid |
| __label_update | __label_update - insert updated version of @label into labelset*@label - the label to update/replace* Returns: new label that is up to date* else NULL on failure* Requires: @ns lock be held* Note: worst case is the stale @label does not get updated and has |
| 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 |