class_device_create(tty_class, MKDEV(TTYAUX_MAJOR, 2), NULL, "ptmx"); 
class_device_create(tty_class, NULL, MKDEV(TTYAUX_MAJOR, 2), NULL, "ptmx"); 
static int __init tty_init(void){	cdev_init(&tty_cdev, &tty_fops);	if (cdev_add(&tty_cdev, MKDEV(TTYAUX_MAJOR, 0), 1) ||	    register_chrdev_region(MKDEV(TTYAUX_MAJOR, 0), 1, "/dev/tty") < 0)		panic("Couldn't register /dev/tty driver\n");	devfs_mk_cdev(MKDEV(TTYAUX_MAJOR, 0), S_IFCHR|S_IRUGO|S_IWUGO, "tty");	class_device_create(tty_class, MKDEV(TTYAUX_MAJOR, 0), NULL, "tty");	cdev_init(&console_cdev, &console_fops);	if (cdev_add(&console_cdev, MKDEV(TTYAUX_MAJOR, 1), 1) ||	    register_chrdev_region(MKDEV(TTYAUX_MAJOR, 1), 1, "/dev/console") < 0)		panic("Couldn't register /dev/console driver\n");	devfs_mk_cdev(MKDEV(TTYAUX_MAJOR, 1), S_IFCHR|S_IRUSR|S_IWUSR, "console");	class_device_create(tty_class, MKDEV(TTYAUX_MAJOR, 1), NULL, "console");#ifdef CONFIG_UNIX98_PTYS	cdev_init(&ptmx_cdev, &ptmx_fops);	if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) ||	    register_chrdev_region(MKDEV(TTYAUX_MAJOR, 2), 1, "/dev/ptmx") < 0)		panic("Couldn't register /dev/ptmx driver\n");	devfs_mk_cdev(MKDEV(TTYAUX_MAJOR, 2), S_IFCHR|S_IRUGO|S_IWUGO, "ptmx");	class_device_create(tty_class, MKDEV(TTYAUX_MAJOR, 2), NULL, "ptmx");#endif#ifdef CONFIG_VT	cdev_init(&vc0_cdev, &console_fops);	if (cdev_add(&vc0_cdev, MKDEV(TTY_MAJOR, 0), 1) ||	    register_chrdev_region(MKDEV(TTY_MAJOR, 0), 1, "/dev/vc/0") < 0)		panic("Couldn't register /dev/tty0 driver\n");	devfs_mk_cdev(MKDEV(TTY_MAJOR, 0), S_IFCHR|S_IRUSR|S_IWUSR, "vc/0");	class_device_create(tty_class, MKDEV(TTY_MAJOR, 0), NULL, "tty0");	vty_init();#endif	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/tty_io.c/clean/drivers/char/tty_io.c