| /linux/Documentation/admin-guide/ |
| H A D | binderfs.rst | 6 Android binderfs is a filesystem for the Android binder IPC mechanism. It 7 allows to dynamically add and remove binder devices at runtime. Binder devices 8 located in a new binderfs instance are independent of binder devices located in 10 to get a set of private binder devices. 18 mount -t binder binder /dev/binderfs 21 In a fresh instance of binderfs no binder devices will be present. There will 22 only be a ``binder-control`` device which serves as the request handler for 31 binderfs instances can be mounted with a limit on the number of binder 34 of binder devices can be allocated in this binderfs instance. 37 Using ``stats=global`` enables global binder statistics. [all …]
|
| /linux/tools/testing/selftests/filesystems/binderfs/ |
| H A D | binderfs_test.c | 21 #include <linux/android/binder.h> 79 ret = mount(NULL, binderfs_mntpt, "binder", 0, 0); in __do_binderfs_test() 89 memcpy(device.name, "my-binder", strlen("my-binder")); in __do_binderfs_test() 91 snprintf(device_path, sizeof(device_path), "%s/binder-control", binderfs_mntpt); in __do_binderfs_test() 94 TH_LOG("%s - Failed to open binder-control device", in __do_binderfs_test() 104 TH_LOG("%s - Failed to allocate new binder device", in __do_binderfs_test() 109 TH_LOG("Allocated new binder device with major %d, minor %d, and name %s", in __do_binderfs_test() 112 /* success: binder device allocation */ in __do_binderfs_test() 114 snprintf(device_path, sizeof(device_path), "%s/my-binder", binderfs_mntpt); in __do_binderfs_test() 117 TH_LOG("%s - Failed to open my-binder device", in __do_binderfs_test() [all …]
|
| /linux/samples/binderfs/ |
| H A D | binderfs_example.c | 15 #include <linux/android/binder.h> 44 ret = mount(NULL, "/dev/binderfs", "binder", 0, 0); in main() 51 memcpy(device.name, "my-binder", strlen("my-binder")); in main() 53 fd = open("/dev/binderfs/binder-control", O_RDONLY | O_CLOEXEC); in main() 55 fprintf(stderr, "%s - Failed to open binder-control device\n", in main() 65 fprintf(stderr, "%s - Failed to allocate new binder device\n", in main() 70 printf("Allocated new binder device with major %d, minor %d, and name %s\n", in main() 73 ret = unlink("/dev/binderfs/my-binder"); in main() 75 fprintf(stderr, "%s - Failed to delete binder device\n", in main()
|
| /linux/sound/soc/intel/avs/boards/ |
| H A D | hdaudio.c | 189 struct snd_soc_dai_link *binder; in avs_hdaudio_probe() local 204 binder = devm_kmemdup(dev, &probing_link, sizeof(probing_link), GFP_KERNEL); in avs_hdaudio_probe() 205 if (!binder) in avs_hdaudio_probe() 208 binder->platforms = devm_kzalloc(dev, sizeof(*binder->platforms), GFP_KERNEL); in avs_hdaudio_probe() 209 binder->codecs = devm_kzalloc(dev, sizeof(*binder->codecs), GFP_KERNEL); in avs_hdaudio_probe() 210 if (!binder->platforms || !binder->codecs) in avs_hdaudio_probe() 213 binder->codecs->name = devm_kstrdup_const(dev, dev_name(&codec->core.dev), GFP_KERNEL); in avs_hdaudio_probe() 214 if (!binder->codecs->name) in avs_hdaudio_probe() 217 binder->platforms->name = dev_name(dev); in avs_hdaudio_probe() 218 binder->num_platforms = 1; in avs_hdaudio_probe() [all …]
|
| /linux/include/uapi/linux/android/ |
| H A D | binderfs.h | 10 #include <linux/android/binder.h> 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 30 * Allocate a new binder device.
|
| /linux/drivers/android/ |
| H A D | binder_alloc.h | 16 #include <uapi/linux/android/binder.h> 21 * struct binder_buffer - buffer used for binder transactions 39 * Bookkeeping structure for binder transaction buffers 61 * struct binder_shrinker_mdata - binder metadata used to reclaim pages 82 * struct binder_alloc - per-binder proc state for binder allocator 97 * @mapped: whether the vm area is mapped, each binder instance is 102 * Bookkeeping structure for per-proc address space management for binder
|
| H A D | binderfs.c | 32 #include <uapi/linux/android/binder.h> 106 * function will stash a struct binder_device for the specific binder 213 * binder_ctl_ioctl - handle binder device node allocation requests 214 * @file: The file pointer for the binder-control device node. 218 * The request handler for the binder-control device. All requests operate on 219 * the binderfs mount the binder-control device resides in: 221 * Allocate a new binder device. 377 * binderfs_binder_ctl_create - create a new binder-control device 380 * This function creates a new binder-control device node in the binderfs mount 432 dentry = d_alloc_name(root, "binder-control"); in binderfs_binder_ctl_create() [all …]
|
| H A D | binder.c | 2 /* binder.c 73 #include <uapi/linux/android/binder.h> 667 * a thread that called into (e)poll is handling non-binder in binder_wakeup_thread_ilocked() 745 binder_uintptr_t ptr = fp ? fp->binder : 0; in binder_init_node_ilocked() 1569 * @t: binder transaction for t->from 1591 * @t: binder transaction for t->from 1624 * @t: binder transaction for t->from 1789 * Copy the binder object at the given offset into @object. If @u is 2001 * function if there is a chance that binder's own file descriptor 2089 node = binder_get_node(proc, fp->binder); in binder_transaction_buffer_release() [all …]
|
| /linux/drivers/android/binder/ |
| H A D | rust_binder.h | 9 #include <uapi/linux/android/binder.h> 14 * Binder can call them. 24 * The internal data types in the Rust Binder driver are opaque to C, so we use
|
| H A D | context.rs | 45 /// There is one context per binder file (/dev/binder, /dev/hwbinder, etc)
|
| H A D | rust_binder_events.c | 4 * Rust Binder tracepoints.
|
| H A D | rust_binder_events.h | 11 #define TRACE_INCLUDE_PATH ../drivers/android/binder
|
| /linux/rust/bindings/ |
| H A D | bindings_helper.h | 170 #include "../../drivers/android/binder/rust_binder.h" 171 #include "../../drivers/android/binder/rust_binder_events.h"
|
| /linux/drivers/android/tests/ |
| H A D | binder_alloc_kunit.c | 3 * Test cases for binder allocator code. 523 kunit_err(test, "Failed to open binder alloc test driver file\n"); in binder_alloc_test_init() 571 MODULE_DESCRIPTION("Binder Alloc KUnit tests");
|
| /linux/drivers/vfio/platform/ |
| H A D | vfio_platform_private.h | 58 * These fields should be filled by the bus specific binder
|
| /linux/rust/helpers/ |
| H A D | helpers.c | 45 #include "binder.c"
|
| /linux/security/selinux/include/ |
| H A D | classmap.h | 135 { "binder",
|
| /linux/security/ |
| H A D | security.c | 506 * security_binder_set_context_mgr() - Check if becoming binder ctx mgr is ok 507 * @mgr: task credentials of current binder process 509 * Check whether @mgr is allowed to be the binder context manager. 519 * security_binder_transaction() - Check if a binder transaction is allowed 523 * Check whether @from is allowed to invoke a binder transaction call to @to. 534 * security_binder_transfer_binder() - Check if a binder transfer is allowed 538 * Check whether @from is allowed to transfer a binder reference to @to. 549 * security_binder_transfer_file() - Check if a binder file xfer is allowed
|
| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 20 "autofs", "bcachefs", "bdev", "befs", "bfs", "binder", "binfmt_misc",
|
| /linux/arch/arc/mm/ |
| H A D | tlb.c | 190 * (Android Binder ended up calling this for vma->mm != tsk->mm, in local_flush_tlb_mm()
|
| /linux/rust/syn/ |
| H A D | generics.rs | 874 let msg = "`for<...>` binder not allowed with `?` trait polarity modifier"; in do_parse()
|
| /linux/fs/ |
| H A D | binfmt_misc.c | 311 * Return: 0 on success, -ENOSPC if the entry is full or the binder is out of
|
| H A D | eventpoll.c | 199 * registered on (binder, signalfd, ...), it wakes the callback with
|
| /linux/security/selinux/ |
| H A D | hooks.c | 749 !strcmp(sb->s_type->name, "binder") || in selinux_set_mnt_opts() 7332 /* This function will check the file pass through unix socket or binder to see
|
| /linux/kernel/bpf/ |
| H A D | btf.c | 6888 /* binder */ in btf_ctx_access()
|