Function report |
Source Code:kernel\bpf\reuseport_array.c |
Create Date:2022-07-28 13:29:40 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:reuseport_array_update_check
Proto: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)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const struct reuseport_array * | array | |
| const struct sock * | nsk | |
| const struct sock * | osk | |
| const struct sock_reuseport * | nsk_reuse | |
| u32 | map_flags |
| 210 | If osk && map_flags == create new element if it didn't exist Then Return -EEXIST |
| 213 | If Not osk && map_flags == update existing element Then Return -ENOENT |
| 216 | If sk_protocol != IPPROTO_UDP && sk_protocol != IPPROTO_TCP Then Return -Operation is not supported |
| 219 | If sk_family != Internet IP Protocol && sk_family != IP version 6 Then Return -Operation is not supported |
| 222 | If sk_type != SOCK_STREAM && sk_type != SOCK_DGRAM Then Return -Operation is not supported |
| 237 | If READ_ONCE(sk_user_data) Then Return -EBUSY |
| 240 | Return 0 |
| Name | Describe |
|---|---|
| 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. |
| 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 |