Home
last modified time | relevance | path

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

12345678910>>...21

/arch/x86/xen/
Ddebugfs.c28 static int u32_array_open(struct inode *inode, struct file *file) in u32_array_open() argument
30 file->private_data = NULL; in u32_array_open()
31 return nonseekable_open(inode, file); in u32_array_open()
74 static ssize_t u32_array_read(struct file *file, char __user *buf, size_t len, in u32_array_read() argument
77 struct inode *inode = file->f_path.dentry->d_inode; in u32_array_read()
82 if (file->private_data) { in u32_array_read()
83 kfree(file->private_data); in u32_array_read()
84 file->private_data = NULL; in u32_array_read()
87 file->private_data = format_array_alloc("%u", data->array, data->elements); in u32_array_read()
91 if (file->private_data) in u32_array_read()
[all …]
/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/
Dcoredump.c55 static int spufs_dump_write(struct file *file, const void *addr, int nr, loff_t *foffset) in spufs_dump_write() argument
63 written = file->f_op->write(file, addr, nr, &file->f_pos); in spufs_dump_write()
72 static int spufs_dump_align(struct file *file, char *buf, loff_t new_off, in spufs_dump_align() argument
83 rc = spufs_dump_write(file, buf, size, foffset); in spufs_dump_align()
121 struct file *file; in coredump_next_context() local
128 file = fcheck(*fd); in coredump_next_context()
130 if (!file || file->f_op != &spufs_context_fops) in coredump_next_context()
133 ctx = SPUFS_I(file->f_dentry->d_inode)->i_ctx; in coredump_next_context()
168 struct file *file, int dfd, loff_t *foffset) in spufs_arch_write_note() argument
189 rc = spufs_dump_write(file, &en, sizeof(en), foffset); in spufs_arch_write_note()
[all …]
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
35 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_seek()
42 new = file->f_pos + off; in page_map_seek()
52 return (file->f_pos = new); in page_map_seek()
55 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, in page_map_read() argument
58 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_read()
62 static int page_map_mmap( struct file *file, struct vm_area_struct *vma ) in page_map_mmap() argument
64 struct proc_dir_entry *dp = PDE(file->f_path.dentry->d_inode); in page_map_mmap()
Drtas-proc.c141 static ssize_t ppc_rtas_clock_write(struct file *file,
144 static ssize_t ppc_rtas_progress_write(struct file *file,
147 static ssize_t ppc_rtas_poweron_write(struct file *file,
150 static ssize_t ppc_rtas_tone_freq_write(struct file *file,
153 static ssize_t ppc_rtas_tone_volume_write(struct file *file,
158 static int sensors_open(struct inode *inode, struct file *file) in sensors_open() argument
160 return single_open(file, ppc_rtas_sensors_show, NULL); in sensors_open()
170 static int poweron_open(struct inode *inode, struct file *file) in poweron_open() argument
172 return single_open(file, ppc_rtas_poweron_show, NULL); in poweron_open()
183 static int progress_open(struct inode *inode, struct file *file) in progress_open() argument
[all …]
/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/x86/kernel/
Dmsr.c46 static loff_t msr_seek(struct file *file, loff_t offset, int orig) in msr_seek() argument
49 struct inode *inode = file->f_mapping->host; in msr_seek()
54 file->f_pos = offset; in msr_seek()
55 ret = file->f_pos; in msr_seek()
58 file->f_pos += offset; in msr_seek()
59 ret = file->f_pos; in msr_seek()
68 static ssize_t msr_read(struct file *file, char __user *buf, in msr_read() argument
74 int cpu = iminor(file->f_path.dentry->d_inode); in msr_read()
96 static ssize_t msr_write(struct file *file, const char __user *buf, in msr_write() argument
102 int cpu = iminor(file->f_path.dentry->d_inode); 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->f_path.dentry->d_inode); in cpuid_read()
114 static int cpuid_open(struct inode *inode, struct file *file) in cpuid_open() argument
119 cpu = iminor(file->f_path.dentry->d_inode); in cpuid_open()
/arch/s390/oprofile/
Dinit.c110 static ssize_t hwsampler_read(struct file *file, char __user *buf, in hwsampler_read() argument
116 static ssize_t hwsampler_write(struct file *file, char const __user *buf, in hwsampler_write() argument
158 static ssize_t hw_interval_read(struct file *file, char __user *buf, in hw_interval_read() argument
165 static ssize_t hw_interval_write(struct file *file, char const __user *buf, in hw_interval_write() argument
201 static ssize_t hwsampler_zero_read(struct file *file, char __user *buf, in hwsampler_zero_read() argument
207 static ssize_t hwsampler_zero_write(struct file *file, char const __user *buf, in hwsampler_zero_write() argument
231 static ssize_t hwsampler_kernel_read(struct file *file, char __user *buf, in hwsampler_kernel_read() argument
238 static ssize_t hwsampler_kernel_write(struct file *file, char const __user *buf, in hwsampler_kernel_write() argument
266 static ssize_t hwsampler_user_read(struct file *file, char __user *buf, in hwsampler_user_read() argument
273 static ssize_t hwsampler_user_write(struct file *file, char const __user *buf, in hwsampler_user_write() argument
[all …]
/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/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/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/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
239 file, 0); in mtrr_ioctl()
255 err = mtrr_file_del(sentry.base, sentry.size, file, 0); in mtrr_ioctl()
292 file, 1); in mtrr_ioctl()
[all …]
/arch/m68k/include/asm/
Dfb.h11 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, in fb_pgprotect() argument
17 static inline void fb_pgprotect(struct file *file, struct vm_area_struct *vma, in fb_pgprotect() argument
/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(inode)->data); 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(file->f_path.dentry->d_inode)->data; 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()
/arch/um/kernel/
Dexitcode.c34 static int exitcode_proc_open(struct inode *inode, struct file *file) in exitcode_proc_open() argument
36 return single_open(file, exitcode_proc_show, NULL); in exitcode_proc_open()
39 static ssize_t exitcode_proc_write(struct file *file, in exitcode_proc_write() argument
/arch/x86/vdso/
Dcheckundef.sh3 file="$2"
4 $nm "$file" | grep '^ *U' > /dev/null 2>&1
8 echo "$file: undefined symbols found" >&2
/arch/x86/um/vdso/
Dcheckundef.sh3 file="$2"
4 $nm "$file" | grep '^ *U' > /dev/null 2>&1
8 echo "$file: undefined symbols found" >&2

12345678910>>...21