#include <linux/autoconf.h>
#include <linux/kernel.h>
#include <linux/compiler.h>
#include <linux/fs.h>
#include <linux/mount.h>
#include <linux/mm_types.h>
#include <linux/printk.h>
#include <linux/init.h>
#include <linux/uaccess.h>
#include <Mm/vmmngr.h>
Go to the source code of this file.
|
| int | __register_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name, const void *fops) |
| |
| void | __unregister_chrdev (unsigned int major, unsigned int baseminor, unsigned int count, const char *name) |
| |
| int | valid_phys_addr_range (phys_addr_t addr, size_t count) |
| |
| int | valid_mmap_phys_addr_range (unsigned long pfn, size_t size) |
| |
| int | range_is_allowed (unsigned long pgoff, unsigned long size) |
| |
| int | phys_mem_access_prot_allowed (struct file *file, unsigned long pfn, unsigned long size, pgprot_t *vma_prot) |
| |
| unsigned long | mm_get_unmapped_area (struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags) |
| |
◆ ARRAY_SIZE
| #define ARRAY_SIZE |
( |
|
arr | ) |
(sizeof(arr) / sizeof((arr)[0])) |
◆ cond_resched
| #define cond_resched |
( |
| ) |
((void)0) |
◆ current
| #define current ((void*)0) |
◆ EFAULT
◆ EFBIG
◆ ENXIO
◆ ERESTARTSYS
◆ fallthrough
◆ FMODE_NOWAIT
| #define FMODE_NOWAIT 0x00080000 |
◆ FOP_UNSIGNED_OFFSET
| #define FOP_UNSIGNED_OFFSET 0x0001 |
◆ MEM_MAJOR
◆ min
| #define min |
( |
|
a, |
|
|
|
b |
|
) |
| (((a) < (b)) ? (a) : (b)) |
◆ min_t
| #define min_t |
( |
|
type, |
|
|
|
a, |
|
|
|
b |
|
) |
| ((type)(a) < (type)(b) ? (type)(a) : (type)(b)) |
◆ need_resched
| #define need_resched |
( |
| ) |
0 |
◆ PAGE_ALIGNED
◆ SEEK_CUR
◆ SEEK_END
◆ SEEK_SET
◆ signal_pending
| #define signal_pending |
( |
|
p | ) |
0 |
◆ VM_DONTDUMP
| #define VM_DONTDUMP 0x02000000 /* leave out of the core dump */ |
◆ VM_DONTEXPAND
| #define VM_DONTEXPAND 0x00080000 /* mremap may not grow this */ |
◆ VM_IO
| #define VM_IO 0x00004000 /* mapped I/O or similar */ |
◆ VM_MIXEDMAP
| #define VM_MIXEDMAP 0x00000100 |
◆ VM_PFNMAP
| #define VM_PFNMAP 0x00000400 /* the whole range is one page table */ |
◆ VMA_NORESERVE_BIT
| #define VMA_NORESERVE_BIT 0 |
◆ VMA_SHARED_BIT
◆ pgprot_t
◆ vm_flags_t
◆ __register_chrdev()
| int __register_chrdev |
( |
unsigned int |
major, |
|
|
unsigned int |
baseminor, |
|
|
unsigned int |
count, |
|
|
const char * |
name, |
|
|
const void * |
fops |
|
) |
| |
|
extern |
◆ __unregister_chrdev()
| void __unregister_chrdev |
( |
unsigned int |
major, |
|
|
unsigned int |
baseminor, |
|
|
unsigned int |
count, |
|
|
const char * |
name |
|
) |
| |
|
extern |
◆ mm_get_unmapped_area()
| unsigned long mm_get_unmapped_area |
( |
struct file * |
file, |
|
|
unsigned long |
addr, |
|
|
unsigned long |
len, |
|
|
unsigned long |
pgoff, |
|
|
unsigned long |
flags |
|
) |
| |
◆ phys_mem_access_prot_allowed()
| int phys_mem_access_prot_allowed |
( |
struct file * |
file, |
|
|
unsigned long |
pfn, |
|
|
unsigned long |
size, |
|
|
pgprot_t * |
vma_prot |
|
) |
| |
◆ range_is_allowed()
| int range_is_allowed |
( |
unsigned long |
pgoff, |
|
|
unsigned long |
size |
|
) |
| |
◆ valid_mmap_phys_addr_range()
| int valid_mmap_phys_addr_range |
( |
unsigned long |
pfn, |
|
|
size_t |
size |
|
) |
| |
◆ valid_phys_addr_range()
◆ kmsg_fops
◆ vma_flags_t
| t t typedef unsigned long vma_flags_t |