Re: How to use register_serial ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 13 Jan 1999 19:35:16 +0000 (GMT)


> We digged out the "register_serial" and "unregister_serial"
> functions, and implemented a small kernel module which

> Jan 13 18:37:38 harlekin kernel: tty02 at 0xb400 (irq = 9) is a 16550A
> Jan 13 18:37:56 harlekin kernel: tty02 unloaded
>
> But how can we access this registered port from within the kernel ?
> We've searched the mailing list archive for this with no luck...

It should have appeared as ttyS2/cua2 in that case. Register serial walks
the port list looking for the first free port available. The return
value indicates the port allocated.

So if you had ttyS0/1/2/3 it would allocate 4.

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/