lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 18 Nov 2010 20:58:47 +0000
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	Timur Tabi <timur@...escale.com>
Cc:	Greg KH <gregkh@...e.de>, Arnd Bergmann <arnd@...db.de>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
	Scott Wood <scottwood@...escale.com>,
	Stuart Yoder <stuart.yoder@...escale.com>
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.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ