⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 start.c

📁 学习内核编程入门的好资料
💻 C
字号:
/* start.c  * Copyright (C) 1999 by Ori Pomerantz *  * "Hello, world" - the kernel module version.  * This file includes just the start routine *//* The necessary header files *//* Standard in kernel modules */#include <linux/kernel.h>   /* We're doing kernel work */#include <linux/module.h>   /* Specifically, a module *//* Deal with CONFIG_MODVERSIONS */#if CONFIG_MODVERSIONS==1#define MODVERSIONS#include <linux/modversions.h>#endif        /* Initialize the module */int init_module(){  printk("Hello, world - this is the kernel speaking\n");  /* If we return a non zero value, it means that    * init_module failed and the kernel module    * can't be loaded */  return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -