zephyr/subsys/net/ip
James Harris b10428163a kernel: sem: add K_SEM_MAX_LIMIT
Currently there is no way to distinguish between a caller
explicitly asking for a semaphore with a limit that
happens to be `UINT_MAX` and a semaphore that just
has a limit "as large as possible".

Add `K_SEM_MAX_LIMIT`, currently defined to `UINT_MAX`, and akin
to `K_FOREVER` versus just passing some very large wait time.

In addition, the `k_sem_*` APIs were type-confused, where
the internal data structure was `uint32_t`, but the APIs took
and returned `unsigned int`. This changes the underlying data
structure to also use `unsigned int`, as changing the APIs
would be a (potentially) breaking change.

These changes are backwards-compatible, but it is strongly suggested
to take a quick scan for `k_sem_init` and `K_SEM_DEFINE` calls with
`UINT_MAX` (or `UINT32_MAX`) and replace them with `K_SEM_MAX_LIMIT`
where appropriate.

Signed-off-by: James Harris <james.harris@intel.com>
2021-03-05 08:13:53 -06:00
..
6lo_private.h
6lo.c net/6lo: First buffer fragment should hold the full compressed header 2021-02-04 07:36:16 -05:00
6lo.h
canbus_socket.c
canbus_socket.h
CMakeLists.txt net: timeout: refactor to fix multiple problems 2021-01-07 11:14:38 +02:00
connection.c net: Add support for simultaneous UDP/TCP and raw sockets 2021-01-15 09:30:17 +02:00
connection.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dhcpv4.c net: dhcp: correct timeout scheduling with multiple interfaces 2021-01-04 10:02:58 +02:00
dhcpv4.h net: dhcpv4: check dhcpv4 msg len is correct 2020-11-02 12:56:16 +02:00
icmpv4.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
icmpv4.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
icmpv6.c net: icmpv6: Store ll addresses to pkt when sending error msg 2020-10-23 09:29:27 +03:00
icmpv6.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ipv4_autoconf_internal.h
ipv4_autoconf.c guideline: Make explicit fallthrough cases 2020-08-24 20:28:47 -04:00
ipv4.c net: Fix access to already unref'ed packet data 2020-10-21 12:49:22 +03:00
ipv4.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ipv6_fragment.c net: ipv6_fragment: fixed endian issue 2020-11-17 11:44:16 +02:00
ipv6_mld.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
ipv6_nbr.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
ipv6.c net: ipv6: fixed endian issue 2020-11-17 11:44:16 +02:00
ipv6.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
Kconfig net: socket send timeout option 2021-02-24 14:16:33 +02:00
Kconfig.debug
Kconfig.ipv4 net: DHCPv4 needs UDP to work properly 2020-09-23 13:28:38 -05:00
Kconfig.ipv6 net: openthread: Simplify openthread enabling 2020-06-30 07:48:08 -04:00
Kconfig.mgmt net: mgmt: Use proper coop thread priority value 2021-02-17 16:42:15 +02:00
Kconfig.stack
Kconfig.stats net/iface: Add PM suspend state statistics 2020-04-02 11:07:45 +03:00
nbr.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
nbr.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
net_context.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
net_core.c net: Drop incoming packet if there is no data in it 2020-09-22 11:22:43 +02:00
net_if.c net: if: check for multicast address already registered 2021-01-14 16:57:07 +02:00
net_mgmt.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
net_pkt.c net: pkt: Add function net_pkt_get_contiguous_len() 2021-02-24 09:43:52 +02:00
net_private.h net: utils: net_pkt_hexdump() was missing log_strdup() 2021-03-01 14:23:30 +02:00
net_shell.c net: shell: UDP commands 2021-03-02 14:20:52 +02:00
net_shell.h
net_stats.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
net_stats.h net: stats: Separate dropped TCP data segments and TCP packets 2020-11-06 09:50:02 -06:00
net_tc_mapping.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
net_tc.c net: ip: remove incorrect check of work item status 2021-03-04 18:00:56 -05:00
net_timeout.c net: timeout: refactor to fix multiple problems 2021-01-07 11:14:38 +02:00
packet_socket.c eth: Add support for Distributed Switch Architecture [DSA] switches 2021-01-20 10:03:42 +02:00
packet_socket.h
promiscuous.c net: promisc: Refactor because of timeout overhaul 2020-04-09 16:07:03 +03:00
route.c net: route: multicast routing feature 2020-08-19 09:46:25 -04:00
route.h net: route: multicast routing feature 2020-08-19 09:46:25 -04:00
tcp2_priv.h net: tcp2: slist API is not thread safe so use locking 2021-02-01 15:23:33 -05:00
tcp2.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
tcp2.h net: tcp2: compile out net_tcp_init() in tcp2.h for non-native stacks 2020-08-11 07:23:59 -05:00
tcp_internal.h net: tcp: Reorganize internal TCP header file 2020-11-16 16:07:10 +02:00
tcp.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
tp_priv.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tp.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
tp.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
trickle.c random: Include header where it is used 2020-07-08 21:05:36 -04:00
udp_internal.h zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
udp.c zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
utils.c net: utils: Check null pointer in net_sprint_ll_addr_buf() 2021-03-01 14:23:30 +02:00