在内核模块中使用蓝牙套接字

Usage bluetooth sockets in kernel module

我很好奇是否有可能在内核模块中制作蓝牙服务器。我见过 udp 服务器,但我需要一个蓝牙服务器。

内核代码可以调用 sock_create_kern() 来创建任何系列的套接字,包括 AF_BLUETOOTH.

net/bluetooth/rfcomm/ 下的代码已经做到了。