Re: Please recommend linux network kernel books...

2011-05-03 Thread inderjeet kalra
Hi, I think the best book is: Linux network internals.. O'Reilly.. On Tue, May 3, 2011 at 6:42 AM, J.Hwan.Kim j.hwan.ki...@gmail.com wrote: Hi, everyone Could you please recommend books on linux network stack of 2.6 Kernel? Thanks in advance. Best Regards, J.Hwan Kim

Re: Please recommend linux network kernel books...

2011-05-03 Thread Javier Martinez Canillas
On Tue, May 3, 2011 at 3:12 AM, J.Hwan.Kim j.hwan.ki...@gmail.com wrote: Hi, everyone Could you please recommend books on linux network stack of 2.6 Kernel? The Linux foundation website has also good information regarding the Linux kernel network stack:

Re: looking for simple module/driver programming examples in source tree

2011-05-03 Thread anish singh
On Tue, May 3, 2011 at 7:50 PM, Javier Martinez Canillas martinez.jav...@gmail.com wrote: i'm also interesting in collecting examples of documentation for basic kernel programming concepts. sometimes, there are excellent examples in the source Documentation/ directory, sometimes not.

Re: need help with my first device driver

2011-05-03 Thread Prashant Shah
On Fri, Apr 29, 2011 at 8:51 PM, Greg KH g...@kroah.com wrote: On Fri, Apr 29, 2011 at 03:10:53PM +0530, Prashant Shah wrote: Hi, I am trying to write a comedi (drivers/staging/comedi) based driver for the National Instruments USB 6008 USB based data acquisition card. I want to ask a quick

Re: need help with my first device driver

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 10:35:02PM +0530, Prashant Shah wrote: On Fri, Apr 29, 2011 at 8:51 PM, Greg KH g...@kroah.com wrote: On Fri, Apr 29, 2011 at 03:10:53PM +0530, Prashant Shah wrote: Hi, I am trying to write a comedi (drivers/staging/comedi) based driver for the National

confused by char dev registration in a gpio driver

2011-05-03 Thread Robert P. J. Day
i'm sure i'm going to embarrass myself here but i was perusing the char drivers for nice examples, and i ran across this excerpt in pc8736x_gpio.c: = begin = if (major) { devid = MKDEV(major, 0); rc = register_chrdev_region(devid,

Re: confused by char dev registration in a gpio driver

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 05:21:11PM -0400, Robert P. J. Day wrote: i'm sure i'm going to embarrass myself here but i was perusing the char drivers for nice examples, and i ran across this excerpt in pc8736x_gpio.c: = begin = if (major) { devid =

Re: if cdev_add() fails, do you need to put the cdev's kobject?

2011-05-03 Thread Greg KH
On Tue, May 03, 2011 at 05:46:05PM -0400, Robert P. J. Day wrote: still perusing various drivers to use as examples in class, and i ran across this snippet in the load routine of drivers/char/raw.c: = start excerpt = cdev_init(raw_cdev, raw_fops); ret =

Re: if cdev_add() fails, do you need to put the cdev's kobject?

2011-05-03 Thread Robert P. J. Day
On Tue, 3 May 2011, Greg KH wrote: On Tue, May 03, 2011 at 05:46:05PM -0400, Robert P. J. Day wrote: still perusing various drivers to use as examples in class, and i ran across this snippet in the load routine of drivers/char/raw.c: = start excerpt =

Re: Question on hd_geometry blk_rq_cur_sectors

2011-05-03 Thread Mulyadi Santosa
On Wed, May 4, 2011 at 10:43, Vic vic.li...@gmail.com wrote: Also, with my current settings, if I use DD on my ramdisk I get blk_rq_cur_sectors count to be always 8, which confuses my drive b'se I want to only handle 512 requests at a time. Simple command to test the disk sing DD sudo dd