Linux Kernel Module - Creating proc file - proc_root undeclared error
Posted
by Zach
on Stack Overflow
See other posts from Stack Overflow
or by Zach
Published on 2010-03-28T02:49:18Z
Indexed on
2010/03/28
2:53 UTC
Read the original article
Hit count: 610
I copy and paste code from this URL for creating and reading/writing a proc file using a kernel module and get the error that proc_root is undeclared. This same example is on a few sites so I assume it works. Any ideas why I'd get this error? Does my makefile need something different. Below is my makefile as well:
Example code for a basic proc file creation (direct copy and paste to get initial test done): http://tldp.org/LDP/lkmpg/2.6/html/lkmpg.html#AEN769
Makefile I'm using:
obj-m := counter.o
KDIR := /MY/LINUX/SRC
PWD := $(shell pwd)
default: $(MAKE) ARCH=um -C $(KDIR) SUBDIRS=$(PWD) modules
© Stack Overflow or respective owner