Function report |
Source Code:kernel\bpf\offload.c |
Create Date:2022-07-28 13:25:25 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:bpf_prog_offload_info_fill
Proto:int bpf_prog_offload_info_fill(struct bpf_prog_info *info, struct bpf_prog *prog)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct bpf_prog_info * | info | |
struct bpf_prog * | prog |
301 | aux = Auxiliary fields |
308 | res = ns_get_path_cb( & ns_path, bpf_prog_offload_info_fill_ns, & args) |
315 | lock for reading |
317 | If Not offload Then |
319 | Return -ENODEV |
322 | ulen = jited_prog_len |
323 | jited_prog_len = jited_len |
324 | If jited_prog_len && ulen Then |
326 | ulen = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, jited_prog_len, ulen) |
327 | If copy_to_user(uinsns, jited_image, ulen) Then |
329 | Return -EFAULT |
336 | alignment pad = new_encode_dev(s_dev) |
340 | Return 0 |
Name | Describe |
---|---|
bpf_prog_get_info_by_fd |
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 |