Lines Matching defs:file

46 #include <linux/file.h>
1548 * fd fixups and fput the file structs. It is safe to
1557 fput(fixup->file);
1896 struct file *file;
1900 * binder_do_fd_close() - close list of file descriptors
1904 * function if there is a chance that binder's own file descriptor
1910 * given file descriptor.
1917 fput(twcb->file);
1922 * binder_deferred_fd_close() - schedule a close for the given file-descriptor
1923 * @fd: file-descriptor to close
1926 * a file-descriptor to be closed after returning from binder_ioctl().
1936 twcb->file = file_close_fd(fd);
1937 if (twcb->file) {
1939 get_file(twcb->file);
1940 filp_close(twcb->file, current->files);
2027 * No need to close the file here since user-space
2032 * file is done when the transaction is torn
2080 /* No space for all file descriptors here. */
2274 struct file *file;
2291 file = fget(fd);
2292 if (!file) {
2298 ret = security_binder_transfer_file(proc->cred, target_proc->cred, file);
2314 fixup->file = file;
2324 fput(file);
2599 /* No space for all file descriptors here. */
4373 fd_install(fixup->target_fd, fixup->file);
5021 * (e.g. ep_remove_wait_queue() being called due to an epoll file
5035 static __poll_t binder_poll(struct file *filp,
5060 static int binder_ioctl_write_read(struct file *filp, unsigned long arg,
5120 static int binder_ioctl_set_ctx_mgr(struct file *filp,
5339 static long binder_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
5597 static int binder_mmap(struct file *filp, struct vm_area_struct *vma)
5623 static int binder_open(struct inode *nodp, struct file *filp)
5696 * Similar to debugfs, the process specific log file is shared
5698 * This is ok since same as debugfs, the log file will contain
5709 pr_warn("Unable to create file %s in binderfs (error %d)\n",
5717 static int binder_flush(struct file *filp, fl_owner_t id)
5748 static int binder_release(struct inode *nodp, struct file *filp)