Function report |
Source Code:security\security.c |
Create Date:2022-07-28 18:38:55 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:security_vm_enough_memory_mm
Proto:int security_vm_enough_memory_mm(struct mm_struct *mm, long pages)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | mm | |
| long | pages |
| 755 | cap_sys_admin = 1 |
| 766 | rc = vm_enough_memory(mm, pages) |
| 767 | If rc <= 0 Then |
| 768 | cap_sys_admin = 0 |
| 769 | Break |
| Name | Describe |
|---|---|
| acct_stack_growth | Verify that the stack growth is acceptable and* update accounting. This is shared with both the |
| do_brk_flags | his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here. |
| insert_vm_struct | Insert vm structure into process list sorted by address* and into the inode's i_mmap tree. If vm_file is non-NULL* then i_mmap_rwsem is taken here. |
| mprotect_fixup | |
| vma_to_resize | |
| SYSCALL_DEFINE1 | |
| __frontswap_unuse_pages |
| 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 |