<linux/slab.h>
void *kmalloc(size_t size, int flags);
void kfree(void *obj);
About 2 minAbout 724 words
void *kmalloc(size_t size, int flags);
void kfree(void *obj);
insmod
modprobe
rmmod
User-space utilities that load modules into the running kernels and remove them.
module_init(init_function);
module_exit(cleanup_function);
#include <linux/fs.h>
struct file_operations { ... };
#include <linux/fs.h>
struct file { ... };
dev_t
dev_t
is the type used to represent device numbers within the kernel.
int MAJOR(dev_t dev);
int MINOR(dev_t dev);
The include file that defines semaphores and the operations on them.
DECLARE_MUTEX(name);
DECLARE_MUTEX_LOCKED(name);
HZ
The HZ
symbol specifies the number of clock ticks generated per second.
volatile unsigned long jiffies
u64 jiffies_64
Environment | Version |
---|---|
Host Processor | Intel® Core™ i7-10710U CPU @ 1.10GHz 1.61 GHz |
Host OS | Windows 11 Pro Education 21H2 |
VMware® Workstation 16 Pro | 16.2.2 build-19200509 |
Virtual Machine OS | Ubuntu 20.04.3 (amd64, Desktop LiveDVD) (tsinghua.edu.cn) |