From: viro@parcelfarce.linux.theplanet.co.uk
To: Linus Torvalds <torvalds@transmeta.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>, linux-kernel@vger.kernel.org
Subject: netlink init order
Date: Sun, 25 May 2003 23:07:09 +0100 [thread overview]
Message-ID: <20030525220709.GJ6270@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20030525215150.GI6270@parcelfarce.linux.theplanet.co.uk>
BTW, is there any reason why init_netlink_dev() is not a module_init()?
We have
int init_module(void)
{
printk(KERN_INFO "Network Kernel/User communications module 0.04\n");
return init_netlink();
}
void cleanup_module(void)
{
int i;
for (i = 0; i < ARRAY_SIZE(entries); i++)
devfs_remove("netlink/%s", entries[i].name);
for (i = 0; i < 16; i++)
devfs_remove("netlink/tap%d", i);
devfs_remove("netlink");
unregister_chrdev(NETLINK_MAJOR, "netlink");
}
in netlink_dev.c and
#ifdef CONFIG_NETLINK_DEV
init_netlink();
#endif
return 0;
}
in the end of netlink_proto_init(), which is core_initcall.
next prev parent reply other threads:[~2003-05-25 21:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-25 20:27 oops with bk kernel as of 2003-05-25T13:00:00-07 Ulrich Drepper
2003-05-25 21:30 ` viro
2003-05-25 21:51 ` [PATCH] " viro
2003-05-25 22:07 ` viro [this message]
2003-05-25 22:12 ` netlink init order Linus Torvalds
2003-05-25 22:20 ` viro
2003-05-26 2:07 ` David S. Miller
2003-05-26 2:22 ` Linus Torvalds
2003-05-26 2:25 ` David S. Miller
2003-05-26 2:50 ` viro
2003-05-26 2:55 ` David S. Miller
2003-05-26 4:37 ` viro
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=20030525220709.GJ6270@parcelfarce.linux.theplanet.co.uk \
--to=viro@parcelfarce.linux.theplanet.co.uk \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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®