Re: [RFC][PATCH -mm take4 2/6] support multiple logging

From: Stephen Hemminger
Date: Tue Apr 24 2007 - 11:22:14 EST


On Tue, 24 Apr 2007 01:29:02 -0700
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Tue, 24 Apr 2007 17:14:28 +0900 Keiichi KII <k-keiichi@xxxxxxxxxxxxx> wrote:
>
> > > On Fri, 20 Apr 2007 18:51:13 +0900
> > > Keiichi KII <k-keiichi@xxxxxxxxxxxxx> wrote:
> > >
> > >>> I started to do some cleanups and fixups here, but abandoned it when it was
> > >>> all getting a bit large.
> > >>>
> > >>> Here are some fixes against this patch:
> > >> I'm going to fix my patches by following your reviews and send new patches
> > >> on the LKML and the netdev ML in a few days.
> > >>
> > >
> > > Well.. before you can finish this work we need to decide upon what the
> > > interface to userspace will be.
> > >
> > > - The miscdev isn't appropriate
> > >
> >
> > Why isn't miscdev appropriate?
> > We just shouldn't use miscdev for networking conventionally?
> >
>
> Yes it's rather odd, especially for networking.
>
> What does the miscdev _do_ anyway? Is it purely a target for the ioctls?

Some other speculations:
1. Would it be possible to add ioctl's to /dev/console? This would be more in
keeping with older Unix style model.

2. Using sysfs makes sense if there is a device object that exists to
add the sysfs attributes to.

3. Procfs is handy for summary type tables.

4. Netlink does feel like overkill for this. Although newer generic netlink
makes it easier.
-
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/