mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-07 06:14:33 +00:00
* Add missing Linux headers. Closes #9837 * Update existing headers to latest Linux. * Consolidate headers that are the same for multiple Zig target CPU architectures. For example, Linux has only an x86 directory for both x86_64 and x86 CPU architectures. Now Zig only ships an x86 directory for Linux headers, and will emit the proper corresponding -isystem flags. * tools/update-linux-headers.zig is now available for upgrading to newer Linux headers, and the update process is now documented on the wiki.
34 lines
No EOL
787 B
C
Vendored
34 lines
No EOL
787 B
C
Vendored
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (C) 2018 Canonical Ltd.
|
|
*
|
|
*/
|
|
|
|
#ifndef _LINUX_BINDERFS_H
|
|
#define _LINUX_BINDERFS_H
|
|
|
|
#include <linux/android/binder.h>
|
|
#include <linux/types.h>
|
|
#include <linux/ioctl.h>
|
|
|
|
#define BINDERFS_MAX_NAME 255
|
|
|
|
/**
|
|
* struct binderfs_device - retrieve information about a new binder device
|
|
* @name: the name to use for the new binderfs binder device
|
|
* @major: major number allocated for binderfs binder devices
|
|
* @minor: minor number allocated for the new binderfs binder device
|
|
*
|
|
*/
|
|
struct binderfs_device {
|
|
char name[BINDERFS_MAX_NAME + 1];
|
|
__u32 major;
|
|
__u32 minor;
|
|
};
|
|
|
|
/**
|
|
* Allocate a new binder device.
|
|
*/
|
|
#define BINDER_CTL_ADD _IOWR('b', 1, struct binderfs_device)
|
|
|
|
#endif /* _LINUX_BINDERFS_H */ |