Lines Matching refs:minor
103 unsigned int minor = MINOR(inode->i_rdev); in netlink_open() local
108 if (minor>=MAX_LINKS) in netlink_open()
110 if (test_and_set_bit(minor, &open_map)) in netlink_open()
113 err = sock_create(PF_NETLINK, SOCK_RAW, minor, &sock); in netlink_open()
125 netlink_user[minor] = sock; in netlink_open()
129 clear_bit(minor, &open_map); in netlink_open()
135 unsigned int minor = MINOR(inode->i_rdev); in netlink_release() local
138 sock = netlink_user[minor]; in netlink_release()
139 netlink_user[minor] = NULL; in netlink_release()
140 clear_bit(minor, &open_map); in netlink_release()
149 unsigned int minor = MINOR(inode->i_rdev); in netlink_ioctl() local
152 if (minor >= MAX_LINKS) in netlink_ioctl()
175 static void __init make_devfs_entries (const char *name, int minor) in make_devfs_entries() argument
178 NETLINK_MAJOR, minor, in make_devfs_entries()