Messages in this thread | | | Date | Thu, 18 Nov 2010 20:58:47 +0000 | From | Alan Cox <> | Subject | Re: How do I choose an arbitrary minor number for my tty device? |
| |
> for (i = 0; i < num_byte_channels; i++) { > bc->handle = get_the_byte_channel_handle(i); > ehv_bc_driver->name_base = bc->handle - i; > tty_register_device(ehv_bc_driver, i, NULL); > } > > This actually works and does what I want, but I seriously doubt it's acceptable. > When I do this, I get: > > # ls -l /dev/ttyEH* > crw-rw---- 1 root uucp 253, 0 Jan 1 00:00 /dev/ttyEHV73 > crw-rw---- 1 root uucp 253, 1 Jan 1 00:00 /dev/ttyEHV76 > crw-rw---- 1 root uucp 253, 2 Jan 1 00:00 /dev/ttyEHV79
Which looks the right approach to me.
| |