Skip to contentSkip to conversation

bluetooth protocol module aliases

PATCH In review Stephen Hemminger 2 participants 2 messages Dec 11, 2003

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bluetooth protocol module aliases

Simple extension of rusty's network protocol aliases to handle the bluetooth protocols as well. This can hold off till after 2.6.0

include/net/bluetooth/bluetooth.h +3 -0
diff -Nru a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
@@ -179,4 +179,7 @@
 
 int  bt_err(__u16 code);
 
+#define MODULE_ALIAS_BTPROTO(proto) \
+	MODULE_ALIAS("bt-proto-" __stringify(proto))
+
 #endif /* __BLUETOOTH_H */
net/bluetooth/bnep/sock.c +1 -0
diff -Nru a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c
@@ -192,6 +192,7 @@
 	.owner	= THIS_MODULE,
 	.create = bnep_sock_create
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_BNEP);
 
 int __init bnep_sock_init(void)
 {
net/bluetooth/hci_sock.c +1 -0
diff -Nru a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
@@ -639,6 +639,7 @@
 	.owner	= THIS_MODULE,
 	.create = hci_sock_create,
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_HCI);
 
 struct notifier_block hci_sock_nblock = {
 	.notifier_call = hci_sock_dev_event
net/bluetooth/l2cap.c +1 -0
diff -Nru a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
@@ -2141,6 +2141,7 @@
 	.create	=       l2cap_sock_create,
 	.owner	=	THIS_MODULE,
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_L2CAP);
 
 static struct hci_proto l2cap_hci_proto = {
 	.name =         "L2CAP",
net/bluetooth/rfcomm/sock.c +1 -0
diff -Nru a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
@@ -888,6 +888,7 @@
 	.owner		= THIS_MODULE,
 	.create		= rfcomm_sock_create
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_RFCOMM);
 
 int  __init rfcomm_init_sockets(void)
 {
#1 lore raw
Quoted 2 lines · On Wed, 10 Dec 2003 16:00:38 -0800 Stephen Hemminger <[email protected]>…

Simple extension of rusty's network protocol aliases to handle the bluetooth protocols as well. This can hold off till after 2.6.0

Yeah, resend this for 2.6.1