驱动内核:kmalloc
#include <stdio.h> #include <string.h> #include <linux/kernel.h> #define sec_kmalloc(__size__) kmalloc((__size__), GFP_ATOMIC) int main() { printf("helle,world"); return 0; }
知识就是希望
#include <stdio.h> #include <string.h> #include <linux/kernel.h> #define sec_kmalloc(__size__) kmalloc((__size__), GFP_ATOMIC) int main() { printf("helle,world"); return 0; }