Re: RFC: ipath ioctls and their replacements

From: Greg KH
Date: Thu Jan 19 2006 - 00:41:57 EST


On Wed, Jan 18, 2006 at 09:17:01PM -0800, Bryan O'Sullivan wrote:
> On Wed, 2006-01-18 at 17:17 -0800, David S. Miller wrote:
>
> > It's going to give you strict typing, and extensible attributes for
> > the configuration attributes you define. So if you determine later
> > "oh we need to add this knob for changing X" you can do that without
> > breaking the existing interface.
>
> Wow. OK, that is not immediately obvious from reading the code. The
> only modules in drivers/ that seem to use netlink are iscsi, connector,
> and w1. It's more extensive in net/, I see.

The attribute stuff is pretty new, and I do not think any code in
drivers/ uses it yet. But it is well documented in
include/net/netlink.h, have you looked at that?

> > Try not to get discouraged, give it a shot :)
>
> It's not obvious what chunk of the the tree is a good example to follow.
> Just look what happened when I suggested to Greg that I use the Dell
> firmware loader as an example :-)

Well, it is good that you asked, far too many people do not. And others
wonder why we are so insistant on everyone doing things properly in all
parts of the kernel, it's because of this reason.

Which reminds me to go back and look at that dell driver again...

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/