nuttx/net/utils
zhanghongyu 11c4bb7f31 utils.h: add conn_dev_sem_timedwait interface to simplify code logic
the following code can be modified

  conn_dev_unlock(&conn->sconn, conn->dev);
  ret = net_sem_timedwait_uninterruptible(&conn->snd_sem,
    tcp_send_gettimeout(start, timeout));
  conn_dev_lock(&conn->sconn, conn->dev);
to

  ret = conn_dev_sem_timedwait(&conn->snd_sem, false,
    tcp_send_gettimeout(start, timeout), &conn->sconn, conn->dev);

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2026-01-02 07:48:06 -03:00
..
CMakeLists.txt nuttx/net: Expose the net_ipv6addr_maskcmp interface to user-mode calls 2025-12-25 22:13:43 +08:00
Kconfig net: Rename tcp_dataconcat to net_iob_concat 2023-07-18 10:51:45 +08:00
Make.defs nuttx/net: Expose the net_ipv6addr_maskcmp interface to user-mode calls 2025-12-25 22:13:43 +08:00
net_bufpool.c net/utils/net_bufpool: add lock to struct net_bufpool_s and bufpool_navail 2025-12-07 11:11:21 +08:00
net_chksum.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_cmsg.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_dsec2tick.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_dsec2timeval.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_icmpchksum.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_incr32.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_iob_concat.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_ipchksum.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
net_ipv6_payload.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_ipv6_pref2mask.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_lock.c conn_lock: inline conn_lock/conn_dev_lock 2026-01-02 07:48:06 -03:00
net_mask2pref.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
net_snoop.c net: unify Private Types banners 2025-05-28 10:17:15 +08:00
net_tcpchksum.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_timeval2dsec.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
net_udpchksum.c net: migrate to SPDX identifier 2024-09-12 01:08:11 +08:00
utils.h utils.h: add conn_dev_sem_timedwait interface to simplify code logic 2026-01-02 07:48:06 -03:00