From cbac67b10e48a7a76485d405fc723084fdafb6a1 Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Thu, 4 Sep 2003 20:53:56 -0700 Subject: [PATCH] large dev_t - second series (6/15) tty redirect handling sanitized. Such ttys (/dev/tty and /dev/console) get a different file_operations; its ->write() handles redirects; checks for file->f_op == &tty_fops updated, checks for major:minor being that of a redirector replaced with check for ->f_op->write value. Piece of code in tty_io.c that had been #if 0 since 0.99 had been finally put out of its misery. kdev_val() is gone. --- include/linux/kdev_t.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'include/linux') diff --git a/include/linux/kdev_t.h b/include/linux/kdev_t.h index 900a4a1e1282..64a88b3b194a 100644 --- a/include/linux/kdev_t.h +++ b/include/linux/kdev_t.h @@ -80,16 +80,6 @@ typedef struct { #define mk_kdev(major, minor) ((kdev_t) { __mkdev(major,minor) } ) -/* - * The "values" are just _cookies_, usable for - * internal equality comparisons and for things - * like NFS filehandle conversion. - */ -static inline unsigned int kdev_val(kdev_t dev) -{ - return dev.value; -} - #define NODEV (mk_kdev(0,0)) /* Mask off the high bits for now.. */ -- cgit v1.2.3