Using THIS_MODULE in the struct proto_ops registered with the core.
static struct proto_ops bnep_sock_ops = {
.family = PF_BLUETOOTH,
+ .owner = THIS_MODULE,
.release = bnep_sock_release,
.ioctl = bnep_sock_ioctl,
.bind = sock_no_bind,
struct proto_ops hci_sock_ops = {
.family = PF_BLUETOOTH,
+ .owner = THIS_MODULE,
.release = hci_sock_release,
.bind = hci_sock_bind,
.getname = hci_sock_getname,
static struct proto_ops l2cap_sock_ops = {
.family = PF_BLUETOOTH,
+ .owner = THIS_MODULE,
.release = l2cap_sock_release,
.bind = l2cap_sock_bind,
.connect = l2cap_sock_connect,
static struct net_proto_family l2cap_sock_family_ops = {
.family = PF_BLUETOOTH,
.create = l2cap_sock_create,
+ .owner = THIS_MODULE,
};
static struct hci_proto l2cap_hci_proto = {
static struct proto_ops rfcomm_sock_ops = {
.family = PF_BLUETOOTH,
+ .owner = THIS_MODULE,
.release = rfcomm_sock_release,
.bind = rfcomm_sock_bind,
.connect = rfcomm_sock_connect,
static struct proto_ops sco_sock_ops = {
.family = PF_BLUETOOTH,
+ .owner = THIS_MODULE,
.release = sco_sock_release,
.bind = sco_sock_bind,
.connect = sco_sock_connect,
static struct net_proto_family sco_sock_family_ops = {
.family = PF_BLUETOOTH,
.create = sco_sock_create,
+ .owner = THIS_MODULE,
};
static struct hci_proto sco_hci_proto = {