Function report |
Source Code:mm\hugetlb.c |
Create Date:2022-07-28 15:29:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:hugetlb_reserve_pages
Proto:int hugetlb_reserve_pages(struct inode *inode, long from, long to, struct vm_area_struct *vma, vm_flags_t vm_flags)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct inode * | inode | |
long | from | |
long | to | |
struct vm_area_struct * | vma | |
vm_flags_t | vm_flags |
4545 | h = hstate_inode(inode) |
4546 | spool = subpool_inode(inode) |
4561 | If vm_flags & should the VM suppress accounting Then Return 0 |
4570 | If Not vma || Flags, see mm.h. & VM_MAYSHARE Then |
4576 | resv_map = inode_resv_map(inode) |
4580 | Else |
4581 | resv_map = resv_map_alloc() |
4587 | set_vma_resv_map(vma, resv_map) |
4591 | If chg < 0 Then |
4602 | If gbl_reserve < 0 Then |
4611 | ret = Forward declaration |
4612 | If ret < 0 Then |
4615 | Go to out_err |
4629 | If Not vma || Flags, see mm.h. & VM_MAYSHARE Then |
4632 | If Value for the false possibility is greater at compile time(chg > add) Then |
4647 | Return 0 |
4648 | out_err : |
4649 | If Not vma || Flags, see mm.h. & VM_MAYSHARE Then If chg >= 0 Then |
4655 | Return ret |
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 |