From: Stephen Hemminger <shemminger@osdl.org>
To: linux-kernel@vger.kernel.org
Subject: Re: Sys fs
Date: Tue, 27 Sep 2005 09:40:37 -0700 [thread overview]
Message-ID: <20050927094037.3a4d54c4@dxpl.pdx.osdl.net> (raw)
In-Reply-To: <C75A388845B4B54B9CF5E2ADB589B0E30F389A86@btss005a.siemens-pse.sk>
On Tue, 27 Sep 2005 14:22:47 +0200
Kormos Matej <Matej.Kormos@siemens.com> 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.
prev parent reply other threads:[~2005-09-27 16:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-27 12:22 Kormos Matej
2005-09-27 16:40 ` Stephen Hemminger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050927094037.3a4d54c4@dxpl.pdx.osdl.net \
--to=shemminger@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®