diff options
| author | Christian Brauner <christian@brauner.io> | 2019-01-10 18:25:41 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-01-11 04:18:24 -0500 |
| commit | c13295ad219d8bb0e47942d4cfc8251de449a67e (patch) | |
| tree | ce94a413ea0e334ef9207ff150325ba81e5f9d41 /include/uapi/linux/android/binderfs.h | |
| parent | 849d540ddfcd4f232f3b2cf40a2e07eccbd6212c (diff) | |
binderfs: rename header to binderfs.h
It doesn't make sense to call the header binder_ctl.h when its sole
existence is tied to binderfs. So give it a sensible name. Users will far
more easily remember binderfs.h than binder_ctl.h.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/android/binderfs.h')
| -rw-r--r-- | include/uapi/linux/android/binderfs.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/uapi/linux/android/binderfs.h b/include/uapi/linux/android/binderfs.h new file mode 100644 index 000000000000..65b2efd1a0a5 --- /dev/null +++ b/include/uapi/linux/android/binderfs.h | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ | ||
| 2 | /* | ||
| 3 | * Copyright (C) 2018 Canonical Ltd. | ||
| 4 | * | ||
| 5 | */ | ||
| 6 | |||
| 7 | #ifndef _UAPI_LINUX_BINDER_CTL_H | ||
| 8 | #define _UAPI_LINUX_BINDER_CTL_H | ||
| 9 | |||
| 10 | #include <linux/android/binder.h> | ||
| 11 | #include <linux/types.h> | ||
| 12 | #include <linux/ioctl.h> | ||
| 13 | |||
| 14 | #define BINDERFS_MAX_NAME 255 | ||
| 15 | |||
| 16 | /** | ||
| 17 | * struct binderfs_device - retrieve information about a new binder device | ||
| 18 | * @name: the name to use for the new binderfs binder device | ||
| 19 | * @major: major number allocated for binderfs binder devices | ||
| 20 | * @minor: minor number allocated for the new binderfs binder device | ||
| 21 | * | ||
| 22 | */ | ||
| 23 | struct binderfs_device { | ||
| 24 | char name[BINDERFS_MAX_NAME + 1]; | ||
| 25 | __u8 major; | ||
| 26 | __u8 minor; | ||
| 27 | }; | ||
| 28 | |||
| 29 | /** | ||
| 30 | * Allocate a new binder device. | ||
| 31 | */ | ||
| 32 | #define BINDER_CTL_ADD _IOWR('b', 1, struct binderfs_device) | ||
| 33 | |||
| 34 | #endif /* _UAPI_LINUX_BINDER_CTL_H */ | ||
| 35 | |||
