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
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_close.c
net_dup2.c net/socket: replace net_lock with conn_lock 2026-01-01 07:35:12 -03:00
net_fstat.c
net_poll.c
net_sendfile.c
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
recv.c
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
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
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