Documentation on device-mapper and friends

2013-04-28 Thread Kumar Amit Mehta
I'm looking for information on device-mapper, the kernel space utility for Logical Volume Management (LVM2). It seems that the relevant code resides under drivers/md and a lot of other information is under Documentation/device-mapper/ That's fine, but is there any other document that gives more

Re: Documentation on device-mapper and friends

2013-04-28 Thread Greg Freemyer
Kumar Amit Mehta gmate.a...@gmail.com wrote: I'm looking for information on device-mapper, the kernel space utility for Logical Volume Management (LVM2). It seems that the relevant code resides under drivers/md and a lot of other information is under Documentation/device-mapper/ That's fine,

Re: oops in a kernel module

2013-04-28 Thread Valdis . Kletnieks
On Sat, 27 Apr 2013 19:34:00 +0300, Kevin Wilson said: Hello, static int __init init_zeromib(void) This is your init routine... { int ret = 0; printk(in %s\n,__func__); Missing KERN_DEBUG or similar here. This can cause it to fail to appear in dmesg output, causing much confusion.

Re: oops in a kernel module

2013-04-28 Thread Kevin Wilson
Valdis, Thanks a lot for you answer. this_cpu_sub() in fact is defined thus: # define this_cpu_sub(pcp, val) this_cpu_add((pcp), -(val)) so it does not matter so much. I did not know this_cpu_write() and it does work. Is __this_cpu_write() an atomic operation ? rgs Kevin On Sun, Apr