Now passes checkpatch
This commit is contained in:
parent
deb6fbd6c9
commit
8d5f6aab17
3 changed files with 12 additions and 6 deletions
|
|
@ -1,14 +1,16 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#ifndef MY_IOCTL_H
|
||||
#define MY_IOCTL_H
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
/*
|
||||
* Crucial point here, the kernel defines a set of macros for defining IOCTL numbers:
|
||||
* _IO - No command
|
||||
* _IOR - Read command
|
||||
* _IOW - Write command
|
||||
* _IORW - RW command
|
||||
* _IOC - Basis of the others
|
||||
* _IO - No command
|
||||
* _IOR - Read command
|
||||
* _IOW - Write command
|
||||
* _IORW - RW command
|
||||
* _IOC - Basis of the others
|
||||
* These macros encode the data type passed to the ioctl.
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue