PDA

View Full Version : a lil help with modules


A_n_H
23rd May 2009, 12:51 PM
hi there,

i want to build a new module that prints out the current time in seconds and nano seconds, but i have a problem, i wrote the requird code and makefile, compiled it, and using insmod entered it into the kernel modules...but what now?

i want it to be like /proc/uptime and /proc/meminfo, but i cant find it listed in /proc?? (though using the command lsmod i am able to see it listed there)



can u help me please

A_n_H
23rd May 2009, 04:17 PM
k i am making some progress, i just need a way to write into a proc, i looked everywhere but cant find one?

anyone here knows a function that writes to a proc, also can someone explain to me what callback_read does, i dont really understand it

thanks in advance