|
@@ -54,11 +54,17 @@
|
|
* low-level driver can "grab" an ioctl request before the line
|
|
* low-level driver can "grab" an ioctl request before the line
|
|
* discpline has a chance to see it.
|
|
* discpline has a chance to see it.
|
|
*
|
|
*
|
|
- * long (*compat_ioctl)(struct tty_struct * tty, struct file * file,
|
|
|
|
|
|
+ * int (*compat_ioctl)(struct tty_struct * tty, struct file * file,
|
|
* unsigned int cmd, unsigned long arg);
|
|
* unsigned int cmd, unsigned long arg);
|
|
*
|
|
*
|
|
* Process ioctl calls from 32-bit process on 64-bit system
|
|
* Process ioctl calls from 32-bit process on 64-bit system
|
|
*
|
|
*
|
|
|
|
+ * NOTE: only ioctls that are neither "pointer to compatible
|
|
|
|
+ * structure" nor tty-generic. Something private that takes
|
|
|
|
+ * an integer or a pointer to wordsize-sensitive structure
|
|
|
|
+ * belongs here, but most of ldiscs will happily leave
|
|
|
|
+ * it NULL.
|
|
|
|
+ *
|
|
* void (*set_termios)(struct tty_struct *tty, struct ktermios * old);
|
|
* void (*set_termios)(struct tty_struct *tty, struct ktermios * old);
|
|
*
|
|
*
|
|
* This function notifies the line discpline that a change has
|
|
* This function notifies the line discpline that a change has
|
|
@@ -184,7 +190,7 @@ struct tty_ldisc_ops {
|
|
const unsigned char *buf, size_t nr);
|
|
const unsigned char *buf, size_t nr);
|
|
int (*ioctl)(struct tty_struct *tty, struct file *file,
|
|
int (*ioctl)(struct tty_struct *tty, struct file *file,
|
|
unsigned int cmd, unsigned long arg);
|
|
unsigned int cmd, unsigned long arg);
|
|
- long (*compat_ioctl)(struct tty_struct *tty, struct file *file,
|
|
|
|
|
|
+ int (*compat_ioctl)(struct tty_struct *tty, struct file *file,
|
|
unsigned int cmd, unsigned long arg);
|
|
unsigned int cmd, unsigned long arg);
|
|
void (*set_termios)(struct tty_struct *tty, struct ktermios *old);
|
|
void (*set_termios)(struct tty_struct *tty, struct ktermios *old);
|
|
__poll_t (*poll)(struct tty_struct *, struct file *,
|
|
__poll_t (*poll)(struct tty_struct *, struct file *,
|