一.前言 近日游玩看了videobuf2相关的videobuf-vmalloc.c,有些想法,特写下. 二、测试代码 1.代码如下(示例): ```c #include<linux/init.h> #include<linux/module.h> #include<linux/device.h> #include<linux/platform_device.h> #include<linux/slab.h> struct vb2_vmalloc_buf { void *vaddr; }; static int __init