netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@osdl.org>
To: Maxim Krasnyansky <maxk@qualcomm.com>,
	"David S. Miller" <davem@redhat.com>,
	Rusty Russell <rusty@rustcorp.com.au>
Cc: netdev@oss.sgi.com
Subject: [PATCH] bluetooth protocol module aliases
Date: Wed, 10 Dec 2003 16:00:38 -0800	[thread overview]
Message-ID: <20031210160038.53f44b29.shemminger@osdl.org> (raw)

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

diff -Nru a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
--- a/include/net/bluetooth/bluetooth.h	Wed Dec 10 15:55:23 2003
+++ b/include/net/bluetooth/bluetooth.h	Wed Dec 10 15:55:23 2003
@@ -179,4 +179,7 @@
 
 int  bt_err(__u16 code);
 
+#define MODULE_ALIAS_BTPROTO(proto) \
+	MODULE_ALIAS("bt-proto-" __stringify(proto))
+
 #endif /* __BLUETOOTH_H */
diff -Nru a/net/bluetooth/bnep/sock.c b/net/bluetooth/bnep/sock.c
--- a/net/bluetooth/bnep/sock.c	Wed Dec 10 15:55:23 2003
+++ b/net/bluetooth/bnep/sock.c	Wed Dec 10 15:55:23 2003
@@ -192,6 +192,7 @@
 	.owner	= THIS_MODULE,
 	.create = bnep_sock_create
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_BNEP);
 
 int __init bnep_sock_init(void)
 {
diff -Nru a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c
--- a/net/bluetooth/hci_sock.c	Wed Dec 10 15:55:23 2003
+++ b/net/bluetooth/hci_sock.c	Wed Dec 10 15:55:23 2003
@@ -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
diff -Nru a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
--- a/net/bluetooth/l2cap.c	Wed Dec 10 15:55:23 2003
+++ b/net/bluetooth/l2cap.c	Wed Dec 10 15:55:23 2003
@@ -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",
diff -Nru a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
--- a/net/bluetooth/rfcomm/sock.c	Wed Dec 10 15:55:23 2003
+++ b/net/bluetooth/rfcomm/sock.c	Wed Dec 10 15:55:23 2003
@@ -888,6 +888,7 @@
 	.owner		= THIS_MODULE,
 	.create		= rfcomm_sock_create
 };
+MODULE_ALIAS_BTPROTO(BTPROTO_RFCOMM);
 
 int  __init rfcomm_init_sockets(void)
 {

             reply	other threads:[~2003-12-11  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11  0:00 Stephen Hemminger [this message]
2003-12-11  0:01 ` [PATCH] bluetooth protocol module aliases David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031210160038.53f44b29.shemminger@osdl.org \
    --to=shemminger@osdl.org \
    --cc=davem@redhat.com \
    --cc=maxk@qualcomm.com \
    --cc=netdev@oss.sgi.com \
    --cc=rusty@rustcorp.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).