驱动内核: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;
}

 

posted on 2021-01-10 01:11  lydstory  阅读(72)  评论(0)    收藏  举报

导航