| Function report | 
| Source Code: kernel\bpf\inode.c | Create Date:2022-07-28 13:06:44 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:bpf_obj_get_user
Proto:int bpf_obj_get_user(const char __user *pathname, int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| const char __user * | pathname | |
| int | flags | 
| 481 | type = BPF_TYPE_UNSPEC | 
| 487 | f_flags = bpf_get_file_flag(flags) | 
| 495 | raw = bpf_obj_do_get(pname, & type, f_flags) | 
| 501 | If type == BPF_TYPE_PROG Then ret = bpf_prog_new_fd(raw) | 
| 503 | Else if type == BPF_TYPE_MAP Then ret = bpf_map_new_fd(raw, f_flags) | 
| 505 | Else Go to out | 
| 508 | If ret < 0 Then bpf_any_put(raw, type) | 
| 510 | out : | 
| 512 | Return ret | 
| Name | Describe | 
|---|---|
| bpf_obj_get | 
| 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 |