<linux/slab.h>
void *kmalloc(size_t size, int flags);
void kfree(void *obj);
5/13/22About 2 min
void *kmalloc(size_t size, int flags);
void kfree(void *obj);
insmod
modprobe
rmmod
#include <linux/fs.h>
struct file_operations { ... };
#include <linux/fs.h>
struct file { ... };
dev_t
The include file that defines semaphores and the operations on them.
DECLARE_MUTEX(name);
DECLARE_MUTEX_LOCKED(name);
HZ
| 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) |