From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aleksa Sarai Subject: Re: [PATCH] tty: add TIOCGPTPEER ioctl Date: Fri, 2 Jun 2017 06:00:17 +1000 Message-ID: References: <20170601173803.8698-1-asarai@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Cc: Greg Kroah-Hartman , Jiri Slaby , Arnd Bergmann , "linux-kernel@vger.kernel.org" , alpha , Linux MIPS Mailing List , Parisc List , "linuxppc-dev@lists.ozlabs.org" , Linux-sh list , sparclinux , "linux-xtensa@linux-xtensa.org" , Linux-Arch , Christian Brauner , Valentin Rothberg To: Geert Uytterhoeven Return-path: In-Reply-To: List-ID: List-Id: linux-parisc.vger.kernel.org >> --- a/arch/alpha/include/uapi/asm/ioctls.h >> +++ b/arch/alpha/include/uapi/asm/ioctls.h >> @@ -94,6 +94,7 @@ >> #define TIOCSRS485 _IOWR('T', 0x2F, struct serial_rs485) >> #define TIOCGPTN _IOR('T',0x30, unsigned int) /* Get Pty Number (of pty-mux device) */ >> #define TIOCSPTLCK _IOW('T',0x31, int) /* Lock/unlock Pty */ >> +#define TIOCGPTPEER _IOR('T', 0x41, int) /* Safely open the slave */ > > Shouldn't the list of definitions be kept sorted, by hex number? > (everywhere) Probably. The reason I put it here is because it logically is very similar to TIOCGPTN and TIOSPTLCK, but I can move it if the hex order is more important for maintainence. -- Aleksa Sarai Software Engineer (Containers) SUSE Linux GmbH https://www.cyphar.com/