/*
* stop.c
* Copyright (C) 1999 by Ori Pomerantz
*
* "Hello, world" - 커널 모듈 버전.
* 이 파일은 단지 종료 루틴만을 포함한다.
*/
/* 필요한 헤더 파일들 */
/* 커널 모듈 안에서의 표준 헤더 */
#include <linux/kernel.h> /* 커널 작업을 수행한다.*/
#define __NO_VERSION__ /* 커널 모듈의 파일이 아니다.*/
#include <linux/module.h> /* 특별히, 하나의 모듈에서 */
#include <linux/version.h> /* __NO_VERSION__때문에, module.h에 의해서 포함되지
않았다. */
/* CONFIG_MODVERSIONS 다루기*/
#if CONFIG_MODVERSIONS==1
#define MODVERSIONS
#include <linux/modversions.h>
#endif
/* 제거 - init_module이 무엇을 했던 간에 되돌린다 */
void cleanup_module()
{
printk("Short is the life of a kernel module\n");
}
답글달기 코드~
우랄랄라
저도 테스트! =_=;
http://kldp.org/Translations/Kernel_Module_Programming_Guide에서 가져왔습니다 :oops:
----
http://poorpuppet.egloos.com