Lines Matching refs:file

32 	unsigned long text, lib, swap, anon, file, shmem;  in task_mem()  local
36 file = get_mm_counter(mm, MM_FILEPAGES); in task_mem()
49 hiwater_rss = total_rss = anon + file + shmem; in task_mem()
66 SEQ_PUT_DEC(" kB\nRssFile:\t", file); in task_mem()
247 static int proc_maps_open(struct inode *inode, struct file *file, in proc_maps_open() argument
250 struct proc_maps_private *priv = __seq_open_private(file, ops, psize); in proc_maps_open()
260 seq_release_private(inode, file); in proc_maps_open()
267 static int proc_map_release(struct inode *inode, struct file *file) in proc_map_release() argument
269 struct seq_file *seq = file->private_data; in proc_map_release()
275 return seq_release_private(inode, file); in proc_map_release()
278 static int do_maps_open(struct inode *inode, struct file *file, in do_maps_open() argument
281 return proc_maps_open(inode, file, ops, in do_maps_open()
324 struct file *file = vma->vm_file; in show_map_vma() local
332 if (file) { in show_map_vma()
347 if (file) { in show_map_vma()
349 seq_file_path(m, file, "\n"); in show_map_vma()
404 static int pid_maps_open(struct inode *inode, struct file *file) in pid_maps_open() argument
406 return do_maps_open(inode, file, &proc_pid_maps_op); in pid_maps_open()
1046 static int pid_smaps_open(struct inode *inode, struct file *file) in pid_smaps_open() argument
1048 return do_maps_open(inode, file, &proc_pid_smaps_op); in pid_smaps_open()
1051 static int smaps_rollup_open(struct inode *inode, struct file *file) in smaps_rollup_open() argument
1060 ret = single_open(file, show_smaps_rollup, priv); in smaps_rollup_open()
1069 single_release(inode, file); in smaps_rollup_open()
1080 static int smaps_rollup_release(struct inode *inode, struct file *file) in smaps_rollup_release() argument
1082 struct seq_file *seq = file->private_data; in smaps_rollup_release()
1089 return single_release(inode, file); in smaps_rollup_release()
1287 static ssize_t clear_refs_write(struct file *file, const char __user *buf, in clear_refs_write() argument
1310 task = get_proc_task(file_inode(file)); in clear_refs_write()
1666 static ssize_t pagemap_read(struct file *file, char __user *buf, in pagemap_read() argument
1669 struct mm_struct *mm = file->private_data; in pagemap_read()
1690 pm.show_pfn = file_ns_capable(file, &init_user_ns, CAP_SYS_ADMIN); in pagemap_read()
1755 static int pagemap_open(struct inode *inode, struct file *file) in pagemap_open() argument
1762 file->private_data = mm; in pagemap_open()
1766 static int pagemap_release(struct inode *inode, struct file *file) in pagemap_release() argument
1768 struct mm_struct *mm = file->private_data; in pagemap_release()
1956 struct file *file = vma->vm_file; in show_numa_map() local
1978 if (file) { in show_numa_map()
1980 seq_file_path(m, file, "\n\t= "); in show_numa_map()
2034 static int pid_numa_maps_open(struct inode *inode, struct file *file) in pid_numa_maps_open() argument
2036 return proc_maps_open(inode, file, &proc_pid_numa_maps_op, in pid_numa_maps_open()