Function report |
Source Code:kernel\bpf\inode.c |
Create Date:2022-07-28 13:06:36 |
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_do_pin
Proto:static int bpf_obj_do_pin(const struct filename *pathname, void *raw, enum bpf_type type)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const struct filename * | pathname | |
void * | raw | |
enum bpf_type | type |
391 | dentry = kern_path_create(Special value used to indicateopenat should use the currentworking directory. , pointer to actual string , & path, 0) |
395 | mode = S_IFREG | (S_IRUSR | S_IWUSR) & ~current_umask() |
397 | ret = security_path_mknod( & path, dentry, mode, 0) |
402 | If i_op != bpf_dir_iops Then |
404 | Go to out |
408 | Case type == BPF_TYPE_PROG |
411 | Case type == BPF_TYPE_MAP |
414 | Default |
417 | out : |
418 | done_path_create( & path, dentry) |
419 | Return ret |
Name | Describe |
---|---|
bpf_obj_pin_user |
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 |