summaryrefslogtreecommitdiffstats
path: root/Documentation/ioctl/botching-up-ioctls.txt (follow)
Commit message (Collapse)AuthorAgeFilesLines
* doc: ioctl: Add some clarifications to botching-up-ioctlsLaura Abbott2016-09-061-5/+8
| | | | | | | | | | | | | | | - The guide currently says to pad the structure to a multiple of 64-bits. This is not necessary in cases where the structure contains no 64-bit types. Clarify this concept to avoid unnecessary padding. - When using __u64 to hold user pointers, blindly trying to do a cast to a void __user * may generate a warning on 32-bit systems about a cast from an integer to a pointer of different size. There is a macro to deal with this which hides an ugly double cast. Add a reference to this macro. Signed-off-by: Laura Abbott <labbott@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
* Doc: ioctl: Fix typos in Documentation/ioctlMasanari Iida2015-11-211-3/+3
| | | | | | | | This patch fix some spelling typos in Documentation/ioctl. Signed-off-by: Masanari Iida <standby24x7@gmail.com> Acked-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
* Documentation: add How to avoid botching up ioctlsMichael Ellerman2014-08-091-0/+219
I pointed some folks at this and they wondered why it wasn't in the kernel Documentation directory. So now it is. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>