af_bluetooth.c (e64c97b53bc6727aa4385535166aaa047281e02d) af_bluetooth.c (9e8305b39bfa23a83b932007654097f4676c2ba2)
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4
5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 12 unchanged lines hidden (view full) ---

21 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
22 SOFTWARE IS DISCLAIMED.
23*/
24
25/* Bluetooth address family and sockets. */
26
27#include <linux/module.h>
28#include <linux/debugfs.h>
1/*
2 BlueZ - Bluetooth protocol stack for Linux
3 Copyright (C) 2000-2001 Qualcomm Incorporated
4
5 Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as

--- 12 unchanged lines hidden (view full) ---

21 COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
22 SOFTWARE IS DISCLAIMED.
23*/
24
25/* Bluetooth address family and sockets. */
26
27#include <linux/module.h>
28#include <linux/debugfs.h>
29#include <linux/stringify.h>
29#include <asm/ioctls.h>
30
31#include <net/bluetooth/bluetooth.h>
32#include <linux/proc_fs.h>
33
34#include "leds.h"
35#include "selftest.h"
36

--- 671 unchanged lines hidden (view full) ---

708 .owner = THIS_MODULE,
709 .family = PF_BLUETOOTH,
710 .create = bt_sock_create,
711};
712
713struct dentry *bt_debugfs;
714EXPORT_SYMBOL_GPL(bt_debugfs);
715
30#include <asm/ioctls.h>
31
32#include <net/bluetooth/bluetooth.h>
33#include <linux/proc_fs.h>
34
35#include "leds.h"
36#include "selftest.h"
37

--- 671 unchanged lines hidden (view full) ---

709 .owner = THIS_MODULE,
710 .family = PF_BLUETOOTH,
711 .create = bt_sock_create,
712};
713
714struct dentry *bt_debugfs;
715EXPORT_SYMBOL_GPL(bt_debugfs);
716
717#define VERSION __stringify(BT_SUBSYS_VERSION) "." \
718 __stringify(BT_SUBSYS_REVISION)
719
716static int __init bt_init(void)
717{
718 int err;
719
720 sock_skb_cb_check_size(sizeof(struct bt_skb_cb));
721
720static int __init bt_init(void)
721{
722 int err;
723
724 sock_skb_cb_check_size(sizeof(struct bt_skb_cb));
725
722 BT_INFO("Core ver %s", BT_SUBSYS_VERSION);
726 BT_INFO("Core ver %s", VERSION);
723
724 err = bt_selftest();
725 if (err < 0)
726 return err;
727
728 bt_debugfs = debugfs_create_dir("bluetooth", NULL);
729
730 bt_leds_init();

--- 61 unchanged lines hidden (view full) ---

792
793 debugfs_remove_recursive(bt_debugfs);
794}
795
796subsys_initcall(bt_init);
797module_exit(bt_exit);
798
799MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
727
728 err = bt_selftest();
729 if (err < 0)
730 return err;
731
732 bt_debugfs = debugfs_create_dir("bluetooth", NULL);
733
734 bt_leds_init();

--- 61 unchanged lines hidden (view full) ---

796
797 debugfs_remove_recursive(bt_debugfs);
798}
799
800subsys_initcall(bt_init);
801module_exit(bt_exit);
802
803MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
800MODULE_DESCRIPTION("Bluetooth Core ver " BT_SUBSYS_VERSION);
801MODULE_VERSION(BT_SUBSYS_VERSION);
804MODULE_DESCRIPTION("Bluetooth Core ver " VERSION);
805MODULE_VERSION(VERSION);
802MODULE_LICENSE("GPL");
803MODULE_ALIAS_NETPROTO(PF_BLUETOOTH);
806MODULE_LICENSE("GPL");
807MODULE_ALIAS_NETPROTO(PF_BLUETOOTH);