nuttx/net/socket
zhanghongyu 8506259b79 net/socket: replace net_lock with conn_lock
dup2 and setsockopt can use the lock in conn to protect resources,
the lock in accept is originally used to protect the connection status.
however, only the send, recv, netpoll, and connect processes will
check this flag. only when the interface returns will the corresponding
conn structure be exposed to the caller, and then the above operations
can be performed. Therefore, this net_lock is not necessary.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-01-01 07:35:12 -03:00
..
accept.c net/socket: replace net_lock with conn_lock 2026-01-01 07:35:12 -03:00
bind.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
CMakeLists.txt net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
connect.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
getpeername.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
getsockname.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
getsockopt.c net/ethernet: add timestamp for socket packet 2025-12-10 23:44:14 +08:00
Kconfig net/packet: add PACKET_<ADD|DROP>_MEMBERSHIP support 2025-12-25 10:01:43 +08:00
listen.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
Make.defs net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_close.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_dup2.c net/socket: replace net_lock with conn_lock 2026-01-01 07:35:12 -03:00
net_fstat.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_poll.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_sendfile.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_sockif.c net_sockif.c: add ip level s|getsockopt support in SOCK_CTRL 2026-01-01 17:04:03 +08:00
net_timeo.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
recv.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
recvfrom.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
recvmsg.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
send.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
sendmsg.c net/udp: Support zero-length UDP datagrams 2025-12-27 20:38:47 +08:00
sendto.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
setsockopt.c net/socket: replace net_lock with conn_lock 2026-01-01 07:35:12 -03:00
shutdown.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
socket.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
socket.h net/ethernet: add timestamp for socket packet 2025-12-10 23:44:14 +08:00
socketpair.c userspace: Exclude nuttx/arch.h 2024-11-01 16:59:37 +08:00