Function report |
Source Code:mm\mmap.c |
Create Date:2022-07-28 14:50:30 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__install_special_mapping
Proto:static struct vm_area_struct *__install_special_mapping(struct mm_struct *mm, unsigned long addr, unsigned long len, unsigned long vm_flags, void *priv, const struct vm_operations_struct *ops)
Type:struct vm_area_struct
Parameter:
Type | Parameter | Name |
---|---|---|
struct mm_struct * | mm | |
unsigned long | addr | |
unsigned long | len | |
unsigned long | vm_flags | |
void * | priv | |
const struct vm_operations_struct * | ops |
3381 | vma = vm_area_alloc(mm) |
3382 | If Value for the false possibility is greater at compile time(vma == NULL) Then Return ERR_PTR( - ENOMEM) |
3392 | was vm_pte (shared mem) = priv |
3394 | ret = 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. |
3400 | perf_event_mmap(vma) |
3402 | Return vma |
3404 | out : |
3405 | vm_area_free(vma) |
Name | Describe |
---|---|
_install_special_mapping | Called with mm->mmap_sem held for writing.* Insert a new vma covering the given region, with the given flags.* Its pages are supplied by the given array of struct page *.* The array can be shorter than len >> PAGE_SHIFT if it's null-terminated. |
install_special_mapping |
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 |