On Tue, 27 Sep 2005 14:22:47 +0200
Kormos Matej <[email protected]> wrote:
> Hello,
> As far as I know all network drivers are automatically shown in
> /sys/class/net;
> But what to do if I want my kobject which is in my char driver appears in
> /sys/class/net?
> I am writing char driver which control some features on a switching device.
> My kobject appears in directly in /sys directory because I set kobject
> parent and kset to NULL.
> But I need to move it to the net directory. I have read the book Linux
> Device Drivers and searched web, but I have not found way how to acquire
> pointers to ksets created by another drivers and how to connect to net
> class.
>
If your driver is not a 'struct network_device' then don't put it
in /sys/class/net please. If you must then, it must export the same
files to keep from breaking assumptions of tools.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|