Re: Writing driver for sync serial board

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 5 Sep 1998 19:03:13 +0100 (BST)


> I am not sure how general this interface will need to be. There may be
> some super-smart boards which could do a SLARP keepalive themselves,
> or some dumb ones which even cannot do the start/end of frame marks.

You don't want a mid layer. Every mid layer in Linux has proved to be a bad
move or continues to cause problems.

The kernel should always be talking direct to the device methods. If the
device methods happen to be calls into a library dumb devices so be it
(and thats what the Z85230 stuff does)

> interfaces. It looks very dirty to me when the hostess_sv11.c registers
> the "hdlcX" interface (and even needs to try to get_dev("hdlcX") until
> it founds the first unused "hdlcX" device :-| ). It should be
> the similar way as the ethernet uses - ethernet low-level drivers
> does not look for their own first free "ethX" name.

The same logic sort of applies. With 2.1.120 this is way less of a concern
anyway. You can rename a device as a user now. If you want an interface
called "myisp0" you can do it.

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html