From: Stephen Hemminger <shemminger@osdl.org>
To: Abhijit Kumbhare <abhijitk@nortelnetworks.com>
Cc: bridge@lists.osdl.org
Subject: Re: [Bridge] brctl insmod
Date: Thu, 29 Jan 2004 13:29:48 -0800 [thread overview]
Message-ID: <20040129132948.58e55c19.shemminger@osdl.org> (raw)
In-Reply-To: <401971E7.5010405@nortelnetworks.com>
On Thu, 29 Jan 2004 12:49:44 -0800
Abhijit Kumbhare <abhijitk@nortelnetworks.com> wrote:
> I noticed that when I type brctl - it does insmod when the bridge module
> is not loaded. Where can I find the code (in the brctl or libbridge
> code) which does that?
>
brctl does an ioctl to get bridge info; it ends up in:
net/socket.c
static int sock_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned long arg)
{
...
switch (cmd) {
...
case SIOCGIFBR:
case SIOCSIFBR:
err = -ENOPKG;
if (!br_ioctl_hook)
request_module("bridge");
down(&br_ioctl_mutex);
if (br_ioctl_hook)
err = br_ioctl_hook(arg);
up(&br_ioctl_mutex);
break;
--
Stephen Hemminger mailto:shemminger@osdl.org
Open Source Development Lab http://developer.osdl.org/shemminger
prev parent reply other threads:[~2004-01-29 21:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-29 20:49 [Bridge] brctl insmod Abhijit Kumbhare
2004-01-29 21:29 ` 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=20040129132948.58e55c19.shemminger@osdl.org \
--to=shemminger@osdl.org \
--cc=abhijitk@nortelnetworks.com \
--cc=bridge@lists.osdl.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