Go to the documentation of this file.
22 #include <linux/kernel.h>
24 #include <asm/machdep.h>
25 #include <asm/vdso_datapage.h>
27 #include <asm/uaccess.h>
32 static loff_t page_map_seek(
struct file *
file, loff_t off,
int whence)
42 new = file->
f_pos + off;
50 if ( new < 0 || new > dp->
size )
52 return (file->
f_pos =
new);
55 static ssize_t page_map_read(
struct file *file,
char __user *
buf,
size_t nbytes,
62 static int page_map_mmap(
struct file *file,
struct vm_area_struct *vma )
76 .read = page_map_read,
81 static int __init proc_ppc64_init(
void)
101 static int __init proc_ppc64_create(
void)
111 pr_err(
"Failed to create link /proc/ppc64 -> /proc/powerpc\n");