open

suspend fun open()

Opens the Linux HCI_CHANNEL_USER socket (or adopts preOpenedHciFd if configured) and prepares the non-blocking poll/wake-pipe loop.

Throws

if opening or binding the HCI socket fails.

CancellationException

if the coroutine is cancelled.