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_BINDERFS_H 8 #define _UAPI_LINUX_BINDERFS_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 __u32 major; 26 __u32 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_BINDERFS_H */ 35 36