Initial commit
This commit is contained in:
commit
455398c14f
|
@ -0,0 +1,94 @@
|
|||
#
|
||||
# NOTE! Don't add files that are generated in specific
|
||||
# subdirectories here. Add them in the ".gitignore" file
|
||||
# in that subdirectory instead.
|
||||
#
|
||||
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
||||
# command after changing this file, to see if there are
|
||||
# any tracked files which get ignored after the change.
|
||||
#
|
||||
# Normal rules
|
||||
#
|
||||
.*
|
||||
*.o
|
||||
*.o.*
|
||||
*.a
|
||||
*.s
|
||||
*.ko
|
||||
*.so
|
||||
*.so.dbg
|
||||
*.mod.c
|
||||
*.i
|
||||
*.lst
|
||||
*.symtypes
|
||||
*.order
|
||||
modules.builtin
|
||||
*.elf
|
||||
*.bin
|
||||
*.gz
|
||||
*.bz2
|
||||
*.lzma
|
||||
*.xz
|
||||
*.lzo
|
||||
*.patch
|
||||
*.gcno
|
||||
|
||||
#
|
||||
# Top-level generic files
|
||||
#
|
||||
/tags
|
||||
/TAGS
|
||||
/linux
|
||||
/vmlinux
|
||||
/vmlinuz
|
||||
/System.map
|
||||
/Module.markers
|
||||
Module.symvers
|
||||
|
||||
#
|
||||
# Debian directory (make deb-pkg)
|
||||
#
|
||||
/debian/
|
||||
|
||||
#
|
||||
# git files that we don't want to ignore even it they are dot-files
|
||||
#
|
||||
!.gitignore
|
||||
!.mailmap
|
||||
|
||||
#
|
||||
# Generated include files
|
||||
#
|
||||
include/config
|
||||
include/linux/version.h
|
||||
include/generated
|
||||
arch/*/include/generated
|
||||
|
||||
# stgit generated dirs
|
||||
patches-*
|
||||
|
||||
# quilt's files
|
||||
patches
|
||||
series
|
||||
|
||||
# cscope files
|
||||
cscope.*
|
||||
ncscope.*
|
||||
|
||||
# gnu global files
|
||||
GPATH
|
||||
GRTAGS
|
||||
GSYMS
|
||||
GTAGS
|
||||
|
||||
*.orig
|
||||
*~
|
||||
\#*#
|
||||
|
||||
#
|
||||
# Leavings from module signing
|
||||
#
|
||||
extra_certificates
|
||||
signing_key.priv
|
||||
signing_key.x509
|
||||
x509.genkey
|
|
@ -0,0 +1,9 @@
|
|||
obj-m = ksudoku.o
|
||||
kernel_version = $(shell uname -r)
|
||||
build_dir = /lib/modules/$(kernel_version)/build
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(build_dir) M=$(PWD) modules
|
||||
clean:
|
||||
$(MAKE) -C $(build_dir) M=$(PWD) clean
|
||||
rm *~
|
|
@ -0,0 +1,27 @@
|
|||
#include <linux/init.h>
|
||||
#include <linux/module.h>
|
||||
|
||||
#define KSTUDY_VERSION "0.1"
|
||||
#define KSTUDY_DESC "Kernel Sudoku Module"
|
||||
|
||||
static int kstudy_init(void)
|
||||
{
|
||||
printk(KERN_ALERT "Init ksudoku.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void kstudy_exit(void)
|
||||
{
|
||||
printk(KERN_ALERT "Exit ksudoku.\n");
|
||||
}
|
||||
|
||||
|
||||
MODULE_AUTHOR("Sameer Rahmani <lxsameer@gnu.org>");
|
||||
|
||||
MODULE_DESCRIPTION(KSTUDY_DESC);
|
||||
MODULE_VERSION(KSTUDY_VERSION);
|
||||
MODULE_LICENSE("GPL");
|
||||
|
||||
module_init(kstudy_init);
|
||||
module_exit(kstudy_exit);
|
|
@ -0,0 +1,2 @@
|
|||
/home/lxsameer/src/linux/ksudoku/ksudoku.o
|
||||
|
Loading…
Reference in New Issue