From: Harald Welte <[EMAIL PROTECTED]>
Date: Sat, 23 Jul 2005 16:15:52 -0400

> The attached patch adds support for refcounting of modules implementing
> netlink protocols.  The idea is that you prevent the module from
> disappearing as long as someone in userspace has still a socket talking
> to you.
> 
> I think the current behaviour can be quite confusing, since modules like
> ipt_ULOG or nfnetlink can have a use count of '0' even though a deamon
> is listening for events [and will not get notified of module unlaoding
> unless it actively sends a message].
> 
> Apart from that, it also adds a way for netlink protocols to support
> autoloading.  This means as soon as any user opens a socket for a
> particular protocol (suchas NETLINK_NETFILTER), the kernel would try to
> open net-pf-16-proto-xx where 16 is AF_NETLINK and xx is the protocol
> number. [I'll probably also try to extend that mechanism to ipv4-sctp in
> a separate patch]

Hmmm, let me think about this.

> - nl_table statically allocated

Please don't do that.  Even though it's BSS space, it takes up
critical kernel image area at run time, which is mapped using
locked TLB entries on some platforms.  This is why I made it
a pointer.

I'll provide feedback on the module refcounting idea in the next
day or two.

Thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to