1*eafedbc7SAlice Ryhl /* SPDX-License-Identifier: GPL-2.0 */ 2*eafedbc7SAlice Ryhl /* 3*eafedbc7SAlice Ryhl * Copyright (C) 2025 Google, Inc. 4*eafedbc7SAlice Ryhl */ 5*eafedbc7SAlice Ryhl 6*eafedbc7SAlice Ryhl #ifndef _LINUX_RUST_BINDER_H 7*eafedbc7SAlice Ryhl #define _LINUX_RUST_BINDER_H 8*eafedbc7SAlice Ryhl 9*eafedbc7SAlice Ryhl #include <uapi/linux/android/binder.h> 10*eafedbc7SAlice Ryhl #include <uapi/linux/android/binderfs.h> 11*eafedbc7SAlice Ryhl 12*eafedbc7SAlice Ryhl /* 13*eafedbc7SAlice Ryhl * These symbols are exposed by `rust_binderfs.c` and exist here so that Rust 14*eafedbc7SAlice Ryhl * Binder can call them. 15*eafedbc7SAlice Ryhl */ 16*eafedbc7SAlice Ryhl int init_rust_binderfs(void); 17*eafedbc7SAlice Ryhl 18*eafedbc7SAlice Ryhl struct dentry; 19*eafedbc7SAlice Ryhl struct inode; 20*eafedbc7SAlice Ryhl struct dentry *rust_binderfs_create_proc_file(struct inode *nodp, int pid); 21*eafedbc7SAlice Ryhl void rust_binderfs_remove_file(struct dentry *dentry); 22*eafedbc7SAlice Ryhl 23*eafedbc7SAlice Ryhl #endif 24