Lines Matching defs:file
46 #include <linux/file.h>
317 * @accept_fds: file descriptor operations supported for node
449 * @cred struct cred associated with the `struct file`
484 * @binderfs_entry: process-specific binderfs log file
590 * @file: struct file to be associated with new fd
593 * List element for fd fixups in a transaction. Since file
600 struct file *file;
645 * @fdo: file descriptor object
647 * @fdao: file descriptor array
1957 * fd fixups and fput the file structs. It is safe to
1966 fput(fixup->file);
2281 struct file *file;
2285 * binder_do_fd_close() - close list of file descriptors
2289 * function if there is a chance that binder's own file descriptor
2295 * given file descriptor.
2302 fput(twcb->file);
2307 * binder_deferred_fd_close() - schedule a close for the given file-descriptor
2308 * @fd: file-descriptor to close
2311 * a file-descriptor to be closed after returning from binder_ioctl().
2321 close_fd_get_file(fd, &twcb->file);
2322 if (twcb->file) {
2323 filp_close(twcb->file, current->files);
2410 * No need to close the file here since user-space
2415 * file is done when the transaction is torn
2463 /* No space for all file descriptors here. */
2658 struct file *file;
2675 file = fget(fd);
2676 if (!file) {
2682 ret = security_binder_transfer_file(proc->cred, target_proc->cred, file);
2698 fixup->file = file;
2707 fput(file);
2982 /* No space for all file descriptors here. */
4587 fd_install(fd, fixup->file);
4588 fixup->file = NULL;
4597 if (fixup->file) {
4598 fput(fixup->file);
5259 * (e.g. ep_remove_wait_queue() being called due to an epoll file
5273 static __poll_t binder_poll(struct file *filp,
5298 static int binder_ioctl_write_read(struct file *filp,
5364 static int binder_ioctl_set_ctx_mgr(struct file *filp,
5473 static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
5711 static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
5738 static int binder_open(struct inode *nodp, struct file *filp)
5810 * Similar to debugfs, the process specific log file is shared
5812 * This is ok since same as debugfs, the log file will contain
5823 pr_warn("Unable to create file %s in binderfs (error %d)\n",
5831 static int binder_flush(struct file *filp, fl_owner_t id)
5862 static int binder_release(struct inode *nodp, struct file *filp)