⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

bt_device_ioctl

Function bt_device_ioctl 

Source
pub fn bt_device_ioctl(
    handle: &BtDeviceHandle,
    cmd: u32,
    arg: u64,
) -> Result<u64, KernelError>
Expand description

Perform an ioctl on the Bluetooth device node.

Supported commands:

  • BT_IOCTL_GET_ADAPTER_INFO: Read adapter address, name, and state
  • BT_IOCTL_SET_SCAN_MODE: Set inquiry/page scan mode
  • BT_IOCTL_RESET: Reset the HCI controller