zephyr/subsys/bluetooth/host
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
..
a2dp_internal.h
a2dp.c misc: Replace assert include and calls by sys/__assert.h equivalent 2020-10-02 11:42:40 +02:00
addr.c Bluetooth: host: Refactor out address handling to new file 2020-11-26 13:15:03 +01:00
aes_ccm.c
at.c
at.h
att_internal.h Bluetooth: host: Release ATT request buffers once sent 2021-02-11 12:59:01 -05:00
att.c Bluetooth: host: Release ATT request buffers once sent 2021-02-11 12:59:01 -05:00
avdtp_internal.h
avdtp.c
buf.c Bluetooth: Seperate BT_ISO and BT_AUDIO 2021-02-15 08:01:34 -05:00
CMakeLists.txt Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
conn_internal.h Bluetooth: Seperate BT_ISO and BT_AUDIO 2021-02-15 08:01:34 -05:00
conn.c Bluetooth: Seperate BT_ISO and BT_AUDIO 2021-02-15 08:01:34 -05:00
crypto.c
crypto.h
direction_internal.h Bluetooth: host: Add DF to initalization sequence 2021-01-05 09:38:53 +01:00
direction.c Bluetooth: host: direction: Remove compilation warning 2021-02-25 14:53:27 +01:00
ecc.c Bluetooth: host: Refactor host ECC handling to own source file 2021-02-18 13:50:22 +01:00
ecc.h Bluetooth: host: Remove dependency on host emulation for debug ECC keys 2021-02-18 13:50:22 +01:00
gatt_internal.h
gatt.c Bluetooth: host: Fix array overrun of client features bitset 2021-02-24 10:37:45 -05:00
hci_common.c
hci_core.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
hci_core.h Bluetooth: host: Refactor host ECC handling to own source file 2021-02-18 13:50:22 +01:00
hci_ecc.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
hci_ecc.h Bluetooth: Refactor ECC emulation supported commands bits 2021-02-18 13:50:22 +01:00
hci_raw_internal.h
hci_raw.c Bluetooth: hci_raw: Move BT_ISO to common Kconfig and fix ISO buffers 2021-02-15 08:01:34 -05:00
hfp_hf.c
hfp_internal.h
iso_internal.h Bluetooth: Seperate BT_ISO and BT_AUDIO 2021-02-15 08:01:34 -05:00
iso.c Bluetooth: Audio: Fixed bad L2CAP Kconfig for ISO fragmentation 2021-02-15 08:01:34 -05:00
Kconfig Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
Kconfig.gatt Bluetooth: ATT: Remove BT_ATT_TX_MAX 2021-02-11 12:59:01 -05:00
Kconfig.l2cap Bluetooth: L2CAP: Enable L2CAP dynamic channels without Enhanced CBFC 2020-11-09 11:25:10 +01:00
keys_br.c
keys.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
keys.h Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
l2cap_br.c bluetooth: host: expand l2cap CID abbreviation 2021-02-04 08:31:20 -05:00
l2cap_internal.h Bluetooth: Host: Notify L2CAP that security change failed 2020-08-06 11:47:03 +02:00
l2cap.c Bluetooth: L2CAP: Fix missing buffer length check for sdu_len 2021-02-24 23:52:43 +02:00
monitor.c Bluetooth: remove unused extern z_prf 2020-10-15 11:50:14 -05:00
monitor.h Bluetooth: monitor: Add support for ISO packets 2020-09-04 21:03:13 +02:00
rfcomm_internal.h
rfcomm.c kernel: sem: add K_SEM_MAX_LIMIT 2021-03-05 08:13:53 -06:00
sdp_internal.h
sdp.c Bluetooth: host: Make acl_data extension of bt_buf user data explicit 2020-11-26 13:15:03 +01:00
settings.c
settings.h
smp_null.c
smp.c Bluetooth: host: Log security keys needed by sniffer 2021-03-04 14:20:25 +02:00
smp.h Bluetooth: host: Convert allowed_cmds to an array of atomic_t of size 1 2021-03-04 13:11:47 +01:00
ssp.c Bluetooth: host: Make acl_data extension of bt_buf user data explicit 2020-11-26 13:15:03 +01:00
ssp.h Bluetooth: host: Split SSP to it's own module 2020-08-11 19:32:35 +02:00
testing.c Bluetooth: Mesh: Move Replay Protect to seperate module 2020-10-01 16:20:24 +03:00
testing.h
uuid.c bluetooth: host: Fix endianness issue in bt_uuid_to_str 2020-10-21 12:16:17 +03:00