Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 63) sorted by relevance

123

/arch/powerpc/platforms/cell/spufs/
Dinode.c47 static struct inode *
63 static void spufs_free_inode(struct inode *inode) in spufs_free_inode() argument
65 kmem_cache_free(spufs_inode_cache, SPUFS_I(inode)); in spufs_free_inode()
76 static struct inode *
79 struct inode *inode; in spufs_new_inode() local
81 inode = new_inode(sb); in spufs_new_inode()
82 if (!inode) in spufs_new_inode()
85 inode->i_ino = get_next_ino(); in spufs_new_inode()
86 inode->i_mode = mode; in spufs_new_inode()
87 inode->i_uid = current_fsuid(); in spufs_new_inode()
[all …]
Dfile.c44 static int spufs_attr_open(struct inode *inode, struct file *file, in spufs_attr_open() argument
56 attr->data = inode->i_private; in spufs_attr_open()
61 return nonseekable_open(inode, file); in spufs_attr_open()
64 static int spufs_attr_release(struct inode *inode, struct file *file) in spufs_attr_release() argument
142 static int __fops ## _open(struct inode *inode, struct file *file) \
145 return spufs_attr_open(inode, file, __get, __set, __fmt); \
157 spufs_mem_open(struct inode *inode, struct file *file) in spufs_mem_open() argument
159 struct spufs_inode_info *i = SPUFS_I(inode); in spufs_mem_open()
165 ctx->local_store = inode->i_mapping; in spufs_mem_open()
171 spufs_mem_release(struct inode *inode, struct file *file) in spufs_mem_release() argument
[all …]
/arch/s390/hypfs/
Dinode.c53 struct inode *inode = d_inode(sb_info->update_file); in hypfs_update_update() local
56 inode->i_atime = inode->i_mtime = inode_set_ctime_current(inode); in hypfs_update_update()
94 static struct inode *hypfs_make_inode(struct super_block *sb, umode_t mode) in hypfs_make_inode()
96 struct inode *ret = new_inode(sb); in hypfs_make_inode()
111 static void hypfs_evict_inode(struct inode *inode) in hypfs_evict_inode() argument
113 clear_inode(inode); in hypfs_evict_inode()
114 kfree(inode->i_private); in hypfs_evict_inode()
117 static int hypfs_open(struct inode *inode, struct file *filp) in hypfs_open() argument
123 if (!(inode->i_mode & S_IWUGO)) in hypfs_open()
127 if (!(inode->i_mode & S_IRUGO)) in hypfs_open()
[all …]
/arch/sh/boards/mach-landisk/
Dgio.c28 static int gio_open(struct inode *inode, struct file *filp) in gio_open() argument
30 int minor = iminor(inode); in gio_open()
46 static int gio_close(struct inode *inode, struct file *filp) in gio_close() argument
48 int minor = iminor(inode); in gio_close()
/arch/um/drivers/
Dharddog_kern.c64 static int harddog_open(struct inode *inode, struct file *file) in harddog_open() argument
87 return stream_open(inode, file); in harddog_open()
94 static int harddog_release(struct inode *inode, struct file *file) in harddog_release() argument
Dhostaudio_kern.c175 static int hostaudio_open(struct inode *inode, struct file *file) in hostaudio_open() argument
211 static int hostaudio_release(struct inode *inode, struct file *file) in hostaudio_release() argument
238 static int hostmixer_open_mixdev(struct inode *inode, struct file *file) in hostmixer_open_mixdev() argument
276 static int hostmixer_release(struct inode *inode, struct file *file) in hostmixer_release() argument
Dmmapper_kern.c73 static int mmapper_open(struct inode *inode, struct file *file) in mmapper_open() argument
78 static int mmapper_release(struct inode *inode, struct file *file) in mmapper_release() argument
/arch/x86/kvm/
Ddebugfs.c160 static int kvm_mmu_rmaps_stat_open(struct inode *inode, struct file *file) in kvm_mmu_rmaps_stat_open() argument
162 struct kvm *kvm = inode->i_private; in kvm_mmu_rmaps_stat_open()
175 static int kvm_mmu_rmaps_stat_release(struct inode *inode, struct file *file) in kvm_mmu_rmaps_stat_release() argument
177 struct kvm *kvm = inode->i_private; in kvm_mmu_rmaps_stat_release()
181 return single_release(inode, file); in kvm_mmu_rmaps_stat_release()
/arch/arm64/kvm/
Dhyp_events.c109 static int hyp_event_open(struct inode *inode, struct file *filp) in hyp_event_open() argument
111 return single_open(filp, hyp_event_show, inode->i_private); in hyp_event_open()
131 static int hyp_event_id_open(struct inode *inode, struct file *filp) in hyp_event_id_open() argument
133 return single_open(filp, hyp_event_id_show, inode->i_private); in hyp_event_id_open()
171 static int hyp_event_format_open(struct inode *inode, struct file *file) in hyp_event_format_open() argument
173 return single_open(file, hyp_event_format_show, inode->i_private); in hyp_event_format_open()
Dhyp_trace.c609 static int hyp_trace_pipe_open(struct inode *inode, struct file *file) in hyp_trace_pipe_open() argument
612 int cpu = (s64)inode->i_private; in hyp_trace_pipe_open()
623 static int hyp_trace_pipe_release(struct inode *inode, struct file *file) in hyp_trace_pipe_release() argument
689 static int hyp_trace_raw_open(struct inode *inode, struct file *file) in hyp_trace_raw_open() argument
691 int ret = hyp_trace_pipe_open(inode, file); in hyp_trace_raw_open()
709 static int hyp_trace_raw_release(struct inode *inode, struct file *file) in hyp_trace_raw_release() argument
716 return hyp_trace_pipe_release(inode, file); in hyp_trace_raw_release()
732 static int hyp_trace_clock_open(struct inode *inode, struct file *file) in hyp_trace_clock_open() argument
744 static int hyp_trace_open(struct inode *inode, struct file *file) in hyp_trace_open() argument
/arch/sparc/kernel/
Dapc.c79 static int apc_open(struct inode *inode, struct file *f) in apc_open() argument
84 static int apc_release(struct inode *inode, struct file *f) in apc_release() argument
/arch/m68k/mvme16x/
Drtc.c123 static int rtc_open(struct inode *inode, struct file *file) in rtc_open() argument
133 static int rtc_release(struct inode *inode, struct file *file) in rtc_release() argument
/arch/m68k/bvme6000/
Drtc.c135 static int rtc_open(struct inode *inode, struct file *file) in rtc_open() argument
144 static int rtc_release(struct inode *inode, struct file *file) in rtc_release() argument
/arch/x86/kernel/cpu/sgx/
Ddriver.c17 static int sgx_open(struct inode *inode, struct file *file) in sgx_open() argument
44 static int sgx_release(struct inode *inode, struct file *file) in sgx_release() argument
Dvirt.c188 static int sgx_vepc_release(struct inode *inode, struct file *file) in sgx_vepc_release() argument
261 static int sgx_vepc_open(struct inode *inode, struct file *file) in sgx_vepc_open() argument
/arch/sh/mm/
Dtlb-debugfs.c137 static int tlb_debugfs_open(struct inode *inode, struct file *file) in tlb_debugfs_open() argument
139 return single_open(file, tlb_seq_show, inode->i_private); in tlb_debugfs_open()
/arch/parisc/kernel/
Dperf.c182 static int perf_release(struct inode *inode, struct file *file);
183 static int perf_open(struct inode *inode, struct file *file);
248 static int perf_open(struct inode *inode, struct file *file) in perf_open() argument
264 static int perf_release(struct inode *inode, struct file *file) in perf_release() argument
/arch/um/kernel/
Dexitcode.c34 static int exitcode_proc_open(struct inode *inode, struct file *file) in exitcode_proc_open() argument
/arch/powerpc/kernel/
Drtas-proc.c157 static int poweron_open(struct inode *inode, struct file *file) in poweron_open() argument
170 static int progress_open(struct inode *inode, struct file *file) in progress_open() argument
183 static int clock_open(struct inode *inode, struct file *file) in clock_open() argument
196 static int tone_freq_open(struct inode *inode, struct file *file) in tone_freq_open() argument
209 static int tone_volume_open(struct inode *inode, struct file *file) in tone_volume_open() argument
/arch/mips/kernel/
Drtlx.c329 static int file_open(struct inode *inode, struct file *filp) in file_open() argument
331 return rtlx_open(iminor(inode), (filp->f_flags & O_NONBLOCK) ? 0 : 1); in file_open()
334 static int file_release(struct inode *inode, struct file *filp) in file_release() argument
336 return rtlx_release(iminor(inode)); in file_release()
/arch/x86/kernel/cpu/mce/
Ddev-mcelog.c127 static int mce_chrdev_open(struct inode *inode, struct file *file) in mce_chrdev_open() argument
144 return nonseekable_open(inode, file); in mce_chrdev_open()
147 static int mce_chrdev_release(struct inode *inode, struct file *file) in mce_chrdev_release() argument
/arch/alpha/kernel/
Dsrm_env.c84 static int srm_env_proc_open(struct inode *inode, struct file *file) in srm_env_proc_open() argument
86 return single_open(file, srm_env_proc_show, pde_data(inode)); in srm_env_proc_open()
/arch/powerpc/platforms/pseries/
Ddtl.c240 static int dtl_file_open(struct inode *inode, struct file *filp) in dtl_file_open() argument
242 struct dtl *dtl = inode->i_private; in dtl_file_open()
253 static int dtl_file_release(struct inode *inode, struct file *filp) in dtl_file_release() argument
255 struct dtl *dtl = inode->i_private; in dtl_file_release()
/arch/ia64/kernel/
Dsalinfo.c275 salinfo_event_open(struct inode *inode, struct file *file) in salinfo_event_open() argument
341 salinfo_log_open(struct inode *inode, struct file *file) in salinfo_log_open() argument
343 struct salinfo_data *data = pde_data(inode); in salinfo_log_open()
366 salinfo_log_release(struct inode *inode, struct file *file) in salinfo_log_release() argument
368 struct salinfo_data *data = pde_data(inode); in salinfo_log_release()
/arch/mips/sibyte/common/
Dsb_tbprof.c389 static int sbprof_tb_open(struct inode *inode, struct file *filp) in sbprof_tb_open() argument
393 minor = iminor(inode); in sbprof_tb_open()
418 static int sbprof_tb_release(struct inode *inode, struct file *filp) in sbprof_tb_release() argument
422 minor = iminor(inode); in sbprof_tb_release()

123