questions about netlink socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I am thinking of use netlink socket as a replacement of IOCTLs in a
SCSI HBA driver I am working on. After reading some document from the
Internet, I have the following questions:

1) Is netlink Socket designed as a general mechanism to replace IOCTL
or it is still mostly used for networking? I seems that currently
there are only 32 protocol types available in netlink.h, most of them
are used for networking purpose.

2) I seems to me that the there is no mechanism to share the same protocol type
among different drivers or kernel modules. For example, I can not just use one
of the existing protocol type say NETLINK_ROUTE to implement the IOCTL
functionality of a driver. Am I missing anything?

3) What is the kernel community's policy of accepting a new protocol
type into netlink.h? Since the maximum is 32, with only about 16 left,
it seems to be impossible to get a protocol type specifically used for
a particular driver.

Thanks a lot

Jing
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux