Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * Copyright (C) 2018 Canonical Ltd.
0004  *
0005  */
0006 
0007 #ifndef _UAPI_LINUX_BINDERFS_H
0008 #define _UAPI_LINUX_BINDERFS_H
0009 
0010 #include <linux/android/binder.h>
0011 #include <linux/types.h>
0012 #include <linux/ioctl.h>
0013 
0014 #define BINDERFS_MAX_NAME 255
0015 
0016 /**
0017  * struct binderfs_device - retrieve information about a new binder device
0018  * @name:   the name to use for the new binderfs binder device
0019  * @major:  major number allocated for binderfs binder devices
0020  * @minor:  minor number allocated for the new binderfs binder device
0021  *
0022  */
0023 struct binderfs_device {
0024     char name[BINDERFS_MAX_NAME + 1];
0025     __u32 major;
0026     __u32 minor;
0027 };
0028 
0029 /**
0030  * Allocate a new binder device.
0031  */
0032 #define BINDER_CTL_ADD _IOWR('b', 1, struct binderfs_device)
0033 
0034 #endif /* _UAPI_LINUX_BINDERFS_H */
0035