X hits on this document

Powerpoint document

Using a JTAG in Linux Driver Debugging - page 8 / 48

117 views

0 shares

0 downloads

0 comments

8 / 48

04/16/2008 - Copyright © 2008 The PTR Group Inc.

CELF-2008-SVC-8

Loadable Module Example

#include <linux/module.h>

#include <linux/init.h>

#include <linux/kernel.h>

#define MODULE_NAME “celf"

int __init celf_init_module(void) {

printk(“celf_init_module() called, ");

return 0;

}

void __exit celf_cleanup_module(void) {

printk(“celf_cleanup_module() called\n");

}

module_init(celf_init_module);

module_exit(celf_cleanup_module);

Document info
Document views117
Page views117
Page last viewedWed Dec 07 08:47:24 UTC 2016
Pages48
Paragraphs607
Words3505

Comments