From: Greg KH <greg@kroah.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: FW: udev documentation
Date: Thu, 15 Jul 2010 16:08:51 +0000 [thread overview]
Message-ID: <20100715160851.GB19418@kroah.com> (raw)
In-Reply-To: <A9809FE53BED6C4489428F7DEE02C3FC647B232906@GVW1095EXB.americas.hpqcorp.net>
On Thu, Jul 15, 2010 at 03:53:11PM +0000, Donnelly, John (ISS (SNI), Houston) wrote:
>
> >> There are 60-net.rules under /etc/udev ... Are ethernet devices a separate category ?
>
> >No.
>
> >What are you looking to have udev do? What is the problem you are having?
>
> Using static MAC's within a system creates config conflicts when
> adapters are exchanged that have different PCI-ID and drivers. Often
> the reconfigured machine will not boot (because of modprobe entries )
> or network (ifcfg-ethX ) bring up fails because of stale configuration
> data left behind by the s-c-n tools.
Then don't do that :)
Wait, what is "s-c-n" tools?
> I am seeking to understand how make a more dynamic ETHERNET
> configuration manager (and underlying components) that bonds PCI-IDs
> and drivers to a ETHERNET device better than they currently do.
The in-kernel driver does this type of "bonding". You mean you want to
change your ethernet device naming to be more flexible, right?
> When I remove/replace an adapter with a different one I want to invoke
> udev to clean up stale ethX and modprobe references.
What do you mean by "modprobe references"? The kernel will auto-load
drivers when it finds a device that it needs a driver for, right?
And when you remove an ethernet device, the kernel removes the ethX
device, and any userspace mappings you had you need to then clean up as
well on your own.
> For instance .. how does /etc/udev/rules.d/60-net.rules get invoked ?
When a ethX device is reported as created by the kernel.
> My impression now is a driver of the "net" class has to post a message
> to udev to get processed by udevd, which rules a script/program.
Yes, but the core kernel logic does the "message send" here, and udevd
handles it automatically.
hope this helps,
greg k-h
next prev parent reply other threads:[~2010-07-15 16:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-14 22:34 FW: udev documentation Donnelly, John (ISS (SNI), Houston)
2010-07-15 4:22 ` Greg KH
2010-07-15 14:10 ` Donnelly, John (ISS (SNI), Houston)
2010-07-15 14:22 ` Greg KH
2010-07-15 14:33 ` Kay Sievers
2010-07-15 15:51 ` Donnelly, John (ISS (SNI), Houston)
2010-07-15 15:53 ` Donnelly, John (ISS (SNI), Houston)
2010-07-15 16:05 ` Kay Sievers
2010-07-15 16:08 ` Greg KH [this message]
2010-07-16 15:46 ` Donnelly, John (ISS (SNI), Houston)
2010-07-19 18:51 ` Donnelly, John (ISS (SNI), Houston)
2010-07-20 17:31 ` Greg KH
2010-07-20 17:36 ` Donnelly, John (ISS (SNI), Houston)
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=20100715160851.GB19418@kroah.com \
--to=greg@kroah.com \
--cc=linux-hotplug@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;
as well as URLs for NNTP newsgroup(s).