Function report |
Source Code:kernel\bpf\syscall.c |
Create Date:2022-07-28 12:52:00 |
Last Modify:2022-05-19 18:06:12 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_map_mmap
Proto:static int bpf_map_mmap(struct file *filp, struct vm_area_struct *vma)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct file * | filp | |
struct vm_area_struct * | vma |
481 | If Not map_mmap || map_value_has_spin_lock(map) Then Return -Operation is not supported |
484 | If Not (Flags, see mm.h. & VM_SHARED) Then Return -EINVAL |
487 | mutex_lock( & freeze_mutex) |
489 | If Flags, see mm.h. & VM_WRITE && write-once; write-protected by freeze_mutex Then |
496 | was vm_pte (shared mem) = map |
502 | bpf_map_inc_with_uref(map) |
504 | If Flags, see mm.h. & VM_WRITE Then writable mmap cnt; protected by freeze_mutex ++ |
506 | out : |
508 | Return err |
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 |