scsi_netlink.c (9b73e76f3cf63379dcf45fcd4f112f5812418d0a) scsi_netlink.c (b7c6ba6eb1234e35a74fb8ba8123232a7b1ba9e4)
1/*
2 * scsi_netlink.c - SCSI Transport Netlink Interface
3 *
4 * Copyright (C) 2006 James Smart, Emulex Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

159/**
160 * scsi_netlink_exit - Called by SCSI subsystem to disable the SCSI transport netlink interface
161 *
162 **/
163void
164scsi_netlink_exit(void)
165{
166 if (scsi_nl_sock) {
1/*
2 * scsi_netlink.c - SCSI Transport Netlink Interface
3 *
4 * Copyright (C) 2006 James Smart, Emulex Corporation
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

159/**
160 * scsi_netlink_exit - Called by SCSI subsystem to disable the SCSI transport netlink interface
161 *
162 **/
163void
164scsi_netlink_exit(void)
165{
166 if (scsi_nl_sock) {
167 sock_release(scsi_nl_sock->sk_socket);
167 netlink_kernel_release(scsi_nl_sock);
168 netlink_unregister_notifier(&scsi_netlink_notifier);
169 }
170
171 return;
172}
173
174
168 netlink_unregister_notifier(&scsi_netlink_notifier);
169 }
170
171 return;
172}
173
174