Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 1144) sorted by relevance

12345678910>>...46

/arch/alpha/kernel/
Dbinfmt_loader.c12 struct file *file; in load_binary() local
21 allow_write_access(bprm->file); in load_binary()
22 fput(bprm->file); in load_binary()
23 bprm->file = NULL; in load_binary()
27 file = open_exec("/sbin/loader"); in load_binary()
28 retval = PTR_ERR(file); in load_binary()
29 if (IS_ERR(file)) in load_binary()
35 bprm->file = file; in load_binary()
/arch/ia64/sn/kernel/sn2/
Dsn_proc_fs.c21 static int partition_id_open(struct inode *inode, struct file *file) in partition_id_open() argument
23 return single_open(file, partition_id_show, NULL); in partition_id_open()
32 static int system_serial_number_open(struct inode *inode, struct file *file) in system_serial_number_open() argument
34 return single_open(file, system_serial_number_show, NULL); in system_serial_number_open()
43 static int licenseID_open(struct inode *inode, struct file *file) in licenseID_open() argument
45 return single_open(file, licenseID_show, NULL); in licenseID_open()
55 static int coherence_id_open(struct inode *inode, struct file *file) in coherence_id_open() argument
57 return single_open(file, coherence_id_show, NULL); in coherence_id_open()
61 extern int sn_topology_open(struct inode *, struct file *);
62 extern int sn_topology_release(struct inode *, struct file *);
/arch/um/drivers/
Dhostaudio_kern.c70 static ssize_t hostaudio_read(struct file *file, char __user *buffer, in hostaudio_read() argument
73 struct hostaudio_state *state = file->private_data; in hostaudio_read()
97 static ssize_t hostaudio_write(struct file *file, const char __user *buffer, in hostaudio_write() argument
100 struct hostaudio_state *state = file->private_data; in hostaudio_write()
126 static unsigned int hostaudio_poll(struct file *file, in hostaudio_poll() argument
138 static long hostaudio_ioctl(struct file *file, in hostaudio_ioctl() argument
141 struct hostaudio_state *state = file->private_data; in hostaudio_ioctl()
181 static int hostaudio_open(struct inode *inode, struct file *file) in hostaudio_open() argument
197 if (file->f_mode & FMODE_READ) in hostaudio_open()
199 if (file->f_mode & FMODE_WRITE) in hostaudio_open()
[all …]
Dmmapper_kern.c28 static ssize_t mmapper_read(struct file *file, char __user *buf, size_t count, in mmapper_read() argument
34 static ssize_t mmapper_write(struct file *file, const char __user *buf, in mmapper_write() argument
43 static long mmapper_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in mmapper_ioctl() argument
48 static int mmapper_mmap(struct file *file, struct vm_area_struct *vma) in mmapper_mmap() argument
72 static int mmapper_open(struct inode *inode, struct file *file) in mmapper_open() argument
77 static int mmapper_release(struct inode *inode, struct file *file) in mmapper_release() argument
Dharddog_kern.c65 static int harddog_open(struct inode *inode, struct file *file) in harddog_open() argument
88 return nonseekable_open(inode, file); in harddog_open()
97 static int harddog_release(struct inode *inode, struct file *file) in harddog_release() argument
117 static ssize_t harddog_write(struct file *file, const char __user *data, size_t len, in harddog_write() argument
128 static int harddog_ioctl_unlocked(struct file *file, in harddog_ioctl_unlocked() argument
152 static long harddog_ioctl(struct file *file, in harddog_ioctl() argument
158 ret = harddog_ioctl_unlocked(file, cmd, arg); in harddog_ioctl()
/arch/powerpc/platforms/cell/spufs/
Dfile.c56 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument
71 file->private_data = attr; in spufs_attr_open()
73 return nonseekable_open(inode, file); in spufs_attr_open()
76 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument
78 kfree(file->private_data); in spufs_attr_release()
82 static ssize_t spufs_attr_read(struct file *file, char __user *buf, in spufs_attr_read() argument
89 attr = file->private_data; in spufs_attr_read()
115 static ssize_t spufs_attr_write(struct file *file, const char __user *buf, in spufs_attr_write() argument
123 attr = file->private_data; in spufs_attr_write()
146 static int __fops ## _open(struct inode *inode, struct file *file) \
[all …]
/arch/powerpc/kernel/
Dproc_powerpc.c32 static loff_t page_map_seek(struct file *file, loff_t off, int whence) in page_map_seek() argument
34 return fixed_size_llseek(file, off, whence, PAGE_SIZE); in page_map_seek()
37 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, in page_map_read() argument
41 PDE_DATA(file_inode(file)), PAGE_SIZE); in page_map_read()
44 static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) in page_map_mmap() argument
50 __pa(PDE_DATA(file_inode(file))) >> PAGE_SHIFT, in page_map_mmap()
Drtas-proc.c139 static ssize_t ppc_rtas_clock_write(struct file *file,
142 static ssize_t ppc_rtas_progress_write(struct file *file,
145 static ssize_t ppc_rtas_poweron_write(struct file *file,
148 static ssize_t ppc_rtas_tone_freq_write(struct file *file,
151 static ssize_t ppc_rtas_tone_volume_write(struct file *file,
156 static int sensors_open(struct inode *inode, struct file *file) in sensors_open() argument
158 return single_open(file, ppc_rtas_sensors_show, NULL); in sensors_open()
168 static int poweron_open(struct inode *inode, struct file *file) in poweron_open() argument
170 return single_open(file, ppc_rtas_poweron_show, NULL); in poweron_open()
181 static int progress_open(struct inode *inode, struct file *file) in progress_open() argument
[all …]
/arch/x86/kernel/
Dmsr.c48 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek() argument
51 struct inode *inode = file_inode(file); in msr_seek()
56 file->f_pos = offset; in msr_seek()
57 ret = file->f_pos; in msr_seek()
60 file->f_pos += offset; in msr_seek()
61 ret = file->f_pos; in msr_seek()
70 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument
76 int cpu = iminor(file_inode(file)); in msr_read()
98 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument
104 int cpu = iminor(file_inode(file)); in msr_write()
[all …]
Dcpuid.c61 static loff_t cpuid_seek(struct file *file, loff_t offset, int orig) in cpuid_seek() argument
64 struct inode *inode = file->f_mapping->host; in cpuid_seek()
69 file->f_pos = offset; in cpuid_seek()
70 ret = file->f_pos; in cpuid_seek()
73 file->f_pos += offset; in cpuid_seek()
74 ret = file->f_pos; in cpuid_seek()
83 static ssize_t cpuid_read(struct file *file, char __user *buf, in cpuid_read() argument
88 int cpu = iminor(file_inode(file)); in cpuid_read()
114 static int cpuid_open(struct inode *inode, struct file *file) in cpuid_open() argument
119 cpu = iminor(file_inode(file)); in cpuid_open()
/arch/sh/mm/
Dcache-debugfs.c25 static int cache_seq_show(struct seq_file *file, void *iter) in cache_seq_show() argument
27 unsigned int cache_type = (unsigned int)file->private; in cache_seq_show()
43 seq_printf(file, "disabled\n"); in cache_seq_show()
70 seq_printf(file, "-----------------------------------------\n"); in cache_seq_show()
71 seq_printf(file, "Way %d\n", way); in cache_seq_show()
72 seq_printf(file, "-----------------------------------------\n"); in cache_seq_show()
84 seq_printf(file, "%3d: %c 0x%lx\n", in cache_seq_show()
97 static int cache_debugfs_open(struct inode *inode, struct file *file) in cache_debugfs_open() argument
99 return single_open(file, cache_seq_show, inode->i_private); in cache_debugfs_open()
Dasids-debugfs.c27 static int asids_seq_show(struct seq_file *file, void *iter) in asids_seq_show() argument
40 seq_printf(file, "%5d : %04lx\n", pid, in asids_seq_show()
49 static int asids_debugfs_open(struct inode *inode, struct file *file) in asids_debugfs_open() argument
51 return single_open(file, asids_seq_show, inode->i_private); in asids_debugfs_open()
/arch/mips/mm/
Dsc-debugfs.c17 static ssize_t sc_prefetch_read(struct file *file, char __user *user_buf, in sc_prefetch_read() argument
30 static ssize_t sc_prefetch_write(struct file *file, in sc_prefetch_write() argument
65 struct dentry *dir, *file; in sc_debugfs_init() local
74 file = debugfs_create_file("prefetch", S_IRUGO | S_IWUSR, dir, in sc_debugfs_init()
76 if (IS_ERR(file)) in sc_debugfs_init()
77 return PTR_ERR(file); in sc_debugfs_init()
/arch/s390/oprofile/
Dinit.c124 static ssize_t hwsampler_read(struct file *file, char __user *buf, in hwsampler_read() argument
130 static ssize_t hwsampler_write(struct file *file, char const __user *buf, in hwsampler_write() argument
172 static ssize_t hw_interval_read(struct file *file, char __user *buf, in hw_interval_read() argument
179 static ssize_t hw_interval_write(struct file *file, char const __user *buf, in hw_interval_write() argument
215 static ssize_t hwsampler_zero_read(struct file *file, char __user *buf, in hwsampler_zero_read() argument
221 static ssize_t hwsampler_zero_write(struct file *file, char const __user *buf, in hwsampler_zero_write() argument
245 static ssize_t hwsampler_kernel_read(struct file *file, char __user *buf, in hwsampler_kernel_read() argument
252 static ssize_t hwsampler_kernel_write(struct file *file, char const __user *buf, in hwsampler_kernel_write() argument
280 static ssize_t hwsampler_user_read(struct file *file, char __user *buf, in hwsampler_user_read() argument
287 static ssize_t hwsampler_user_write(struct file *file, char const __user *buf, in hwsampler_user_write() argument
[all …]
/arch/um/os-Linux/
Dumid.c83 char file[256]; in remove_files_and_dir() local
98 if (len > sizeof(file)) { in remove_files_and_dir()
103 sprintf(file, "%s/%s", dir, ent->d_name); in remove_files_and_dir()
104 if (unlink(file) < 0 && errno != ENOENT) { in remove_files_and_dir()
135 char file[strlen(uml_dir) + UMID_LEN + sizeof("/pid\0")]; in is_umdir_used() local
139 n = snprintf(file, sizeof(file), "%s/pid", dir); in is_umdir_used()
140 if (n >= sizeof(file)) { in is_umdir_used()
147 fd = open(file, O_RDONLY); in is_umdir_used()
152 "file '%s', err = %d\n", file, -fd); in is_umdir_used()
161 "'%s', err = %d\n", file, errno); in is_umdir_used()
[all …]
Dexecvp.c39 int execvp_noalloc(char *buf, const char *file, char *const argv[]) in execvp_noalloc() argument
41 if (*file == '\0') { in execvp_noalloc()
45 if (strchr (file, '/') != NULL) { in execvp_noalloc()
47 execv(file, argv); in execvp_noalloc()
56 len = strlen(file) + 1; in execvp_noalloc()
59 name = memcpy(buf + pathlen + 1, file, len); in execvp_noalloc()
/arch/blackfin/boot/
Dinstall.sh47 local file=$1
48 [ -f ${file} ] || return 0
49 local stamp=$(stat -c %Y ${file} 2>/dev/null)
50 mv ${file} ${file}.${stamp:-old}
/arch/arm64/include/asm/
Dbug.h24 #define _BUGVERBOSE_LOCATION(file, line) __BUGVERBOSE_LOCATION(file, line) argument
25 #define __BUGVERBOSE_LOCATION(file, line) \ argument
27 "2: .string \"" file "\"\n\t" \
33 #define _BUGVERBOSE_LOCATION(file, line) argument
/arch/x86/mm/
Dhugetlbpage.c75 static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file, in hugetlb_get_unmapped_area_bottomup() argument
79 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_bottomup()
91 static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file, in hugetlb_get_unmapped_area_topdown() argument
95 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area_topdown()
125 hugetlb_get_unmapped_area(struct file *file, unsigned long addr, in hugetlb_get_unmapped_area() argument
128 struct hstate *h = hstate_file(file); in hugetlb_get_unmapped_area()
138 if (prepare_hugepage_range(file, addr, len)) in hugetlb_get_unmapped_area()
151 return hugetlb_get_unmapped_area_bottomup(file, addr, len, in hugetlb_get_unmapped_area()
154 return hugetlb_get_unmapped_area_topdown(file, addr, len, in hugetlb_get_unmapped_area()
/arch/cris/arch-v10/drivers/
Deeprom.c81 static int eeprom_open(struct inode * inode, struct file * file);
82 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig);
83 static ssize_t eeprom_read(struct file * file, char * buf, size_t count,
85 static ssize_t eeprom_write(struct file * file, const char * buf, size_t count,
87 static int eeprom_close(struct inode * inode, struct file * file);
376 static int eeprom_open(struct inode * inode, struct file * file) in eeprom_open() argument
395 static loff_t eeprom_lseek(struct file * file, loff_t offset, int orig) in eeprom_lseek() argument
406 file->f_pos = offset; in eeprom_lseek()
409 file->f_pos += offset; in eeprom_lseek()
412 file->f_pos = eeprom.size - offset; in eeprom_lseek()
[all …]
/arch/tile/gxio/
Dusb_host.c32 char file[32]; in gxio_usb_host_init() local
36 snprintf(file, sizeof(file), "usb_host/%d/iorpc/ehci", in gxio_usb_host_init()
39 snprintf(file, sizeof(file), "usb_host/%d/iorpc/ohci", in gxio_usb_host_init()
42 fd = hv_dev_open((HV_VirtAddr) file, 0); in gxio_usb_host_init()
Dtrio.c30 char file[32]; in gxio_trio_init() local
33 snprintf(file, sizeof(file), "trio/%d/iorpc", trio_index); in gxio_trio_init()
34 fd = hv_dev_open((HV_VirtAddr) file, 0); in gxio_trio_init()
/arch/x86/kernel/cpu/mtrr/
Dif.c39 unsigned int type, bool increment, struct file *file, int page) in mtrr_file_add() argument
41 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_add()
49 FILE_FCOUNT(file) = fcount; in mtrr_file_add()
65 struct file *file, int page) in mtrr_file_del() argument
67 unsigned int *fcount = FILE_FCOUNT(file); in mtrr_file_del()
94 mtrr_write(struct file *file, const char __user *buf, size_t len, loff_t * ppos) in mtrr_write() argument
166 mtrr_ioctl(struct file *file, unsigned int cmd, unsigned long __arg) in mtrr_ioctl() argument
241 file, 0); in mtrr_ioctl()
257 err = mtrr_file_del(sentry.base, sentry.size, file, 0); in mtrr_ioctl()
294 file, 1); in mtrr_ioctl()
[all …]
/arch/arc/kernel/
Dtroubleshoot.c63 struct file *exe_file; in print_task_path_n_nm()
100 struct file *file = vma->vm_file; in show_faulting_vma() local
101 if (file) { in show_faulting_vma()
102 nm = file_path(file, buf, PAGE_SIZE - 1); in show_faulting_vma()
273 static int tlb_stats_open(struct inode *inode, struct file *file) in tlb_stats_open() argument
275 file->private_data = (void *)__get_free_page(GFP_KERNEL); in tlb_stats_open()
280 static ssize_t tlb_stats_output(struct file *file, /* file descriptor */ in tlb_stats_output() argument
286 char *kbuf = (char *)file->private_data; in tlb_stats_output()
303 static ssize_t tlb_stats_clear(struct file *file, const char __user *user_buf, in tlb_stats_clear() argument
310 static int tlb_stats_close(struct inode *inode, struct file *file) in tlb_stats_close() argument
[all …]
/arch/mips/lasat/
Dpicvue_proc.c59 static int pvc_line_proc_open(struct inode *inode, struct file *file) in pvc_line_proc_open() argument
61 return single_open(file, pvc_line_proc_show, PDE_DATA(inode)); in pvc_line_proc_open()
64 static ssize_t pvc_line_proc_write(struct file *file, const char __user *buf, in pvc_line_proc_write() argument
67 int lineno = *(int *)PDE_DATA(file_inode(file)); in pvc_line_proc_write()
100 static ssize_t pvc_scroll_proc_write(struct file *file, const char __user *buf, in pvc_scroll_proc_write() argument
145 static int pvc_scroll_proc_open(struct inode *inode, struct file *file) in pvc_scroll_proc_open() argument
147 return single_open(file, pvc_scroll_proc_show, NULL); in pvc_scroll_proc_open()

12345678910>>...46