函数逻辑报告 |
Source Code:kernel\bpf\reuseport_array.c |
Create Date:2022-07-27 14:48:18 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:reuseport_array_update_check
函数原型:static int reuseport_array_update_check(const struct reuseport_array *array, const struct sock *nsk, const struct sock *osk, const struct sock_reuseport *nsk_reuse, u32 map_flags)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
const struct reuseport_array * | array | |
const struct sock * | nsk | |
const struct sock * | osk | |
const struct sock_reuseport * | nsk_reuse | |
u32 | map_flags |
210 | 如果osk且map_flags恒等于create new element if it didn't exist 则返回:负EEXIST |
213 | 如果非osk且map_flags恒等于update existing element 则返回:负ENOENT |
216 | 如果sk_protocol不等于IPPROTO_UDP且sk_protocol不等于IPPROTO_TCP则返回:负Operation is not supported |
219 | 如果sk_family不等于Internet IP Protocol 且sk_family不等于IP version 6 则返回:负Operation is not supported |
222 | 如果sk_type不等于SOCK_STREAM且sk_type不等于SOCK_DGRAM则返回:负Operation is not supported |
237 | 如果READ_ONCE(sk_user_data)则返回:负EBUSY |
240 | 返回:0 |
名称 | 描述 |
---|---|
bpf_fd_reuseport_array_update_elem | Called from syscall only.* The "nsk" in the fd refcnt.* The "osk" and "reuse" are protected by reuseport_lock. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |