Function report |
Source Code:mm\nommu.c |
Create Date:2022-07-28 14:37:09 |
| Last Modify:2020-03-17 21:26:27 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:we've determined that we can make the mapping, now translate what we* now know into VMA flags
Proto:static unsigned long determine_vm_flags(struct file *file, unsigned long prot, unsigned long flags, unsigned long capabilities)
Type:unsigned long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct file * | file | |
| unsigned long | prot | |
| unsigned long | flags | |
| unsigned long | capabilities |
| 953 | vm_flags = Combine the mmap "prot" argument into "vm_flags" used internally. | Combine the mmap "flags" argument into "vm_flags" used internally. |
| 956 | If Not (capabilities & Can be mapped directly (MAP_SHARED)) Then |
| 958 | vm_flags |= limits for mprotect() etc | VM_MAYWRITE | VM_MAYEXEC |
| 959 | If file && Not (prot & page can be written ) Then vm_flags |= VM_MAYSHARE |
| 961 | Else |
| 965 | vm_flags |= VM_MAYSHARE | capabilities & NOMMU_VMFLAGS |
| 966 | If flags & Share changes Then vm_flags |= VM_SHARED |
| 974 | If flags & Changes are private && ptrace Then vm_flags &= ~VM_MAYSHARE |
| 977 | Return vm_flags |
| Name | Describe |
|---|---|
| do_mmap | handle mapping creation for uClinux |
| 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 |