Re: Access thread stack from another thread

2010-06-06 Thread Simon Kitching
On Sun, 2010-06-06 at 13:49 +0530, Joel Fernandes wrote: > On Sun, Jun 6, 2010 at 3:06 AM, Vimal wrote: > > Hi Joel, > > > >> > >> now i have a question, even if they share the same vm address space - > >> they definitely can't share the userspace stack, i'm sure the kernel > >> would have to rese

Re: error in loading a module in 2.6.34

2010-05-23 Thread Simon Kitching
On Sun, 2010-05-23 at 05:21 -0400, Robert P. J. Day wrote: > On Sun, 23 May 2010, Simon Kitching wrote: > > > I see that drivers/vhost/Kconfig contains this: > > > > config VHOST_NET > > tristate "Host kernel accelerator for virtio net (EXPERIMENTAL)"

Re: error in loading a module in 2.6.34

2010-05-23 Thread Simon Kitching
On Sun, 2010-05-23 at 01:53 -0400, Balachandar wrote: > On Sat, May 22, 2010 at 9:45 PM, Simon Kitching > wrote: > > > I see that drivers/vhost/Kconfig contains this: > > > > config VHOST_NET > > tristate "Host kernel accelerator for virtio net (EXPERIM

Re: error in loading a module in 2.6.34

2010-05-22 Thread Simon Kitching
On Sat, 2010-05-22 at 21:01 -0400, Balachandar wrote: > I tried both. When i tried modprobe it says that vhost_net.ko not > found. Actually i want to point out that i configured the module to be > built along with the linux kernel itself during the make menuconfig. I > suppose that building along w

Re: error in loading a module in 2.6.34

2010-05-22 Thread Simon Kitching
On Sat, 2010-05-22 at 19:20 -0400, Balachandar wrote: > Hello, > I recently downloaded the 2.6.34 kernel and wanted to use the new > vhost_net module. I selected the option in the 'make menuconfig' as a > module and built the kernel. After rebooting, i couldn't find the > module using the lsmod co

Re: how to request new kernel function

2010-05-22 Thread Simon Kitching
On Sat, 2010-05-22 at 16:33 -0400, Ralph Blach wrote: > How do I request new kernel function? Do I open a bug on bugzilla or ask on > the main kernel mailing list. >From my observation of kernel development over a few years: * A Bugzilla entry is very likely to be ignored. * Emailing to the ma

Re: get_pid problem

2010-05-22 Thread Simon Kitching
Sorry, originally sent a reply to loody instead of Shyam. On Sat, 2010-05-22 at 21:29 +1200, Simon Kitching wrote: > On Sat, 2010-05-22 at 11:30 +0700, Mulyadi Santosa wrote: > > On Fri, May 21, 2010 at 19:33, Shyam Burkule > > wrote: > > > Hi All, > > > I am

Re: get_pid problem

2010-05-22 Thread Simon Kitching
On Sat, 2010-05-22 at 11:30 +0700, Mulyadi Santosa wrote: > On Fri, May 21, 2010 at 19:33, Shyam Burkule wrote: > > Hi All, > > I am using Linux kernel 2.6.27(SLES11). I am getting one strange problem. > > I am using task_pid function followed by get_pid function to get pid > > structure. > > He

Re: About struct blockgroup_lock

2010-05-16 Thread Simon Kitching
On Sat, 2010-05-15 at 22:58 +0800, Ryan Wang wrote: > Hi, > > Recently I was reading some code about filesystems, and I found > the usage of struct blockgroup_lock is confusing. I have 3 questions > about it, and please help give me some instuctions on them. > > http://lxr.linux.no/#linux+v2

Re: try_module_get and module_put usage

2010-05-16 Thread Simon Kitching
On Sun, 2010-05-16 at 03:06 +0545, vikas chauhan wrote: > Hi, > Can any one tell me, what are the > functions try_module_get and module_put used for ? I couldn't find any > documentation by googling. > The implementation of try_module_get can be found in file include/linux/module.h (it is an i

Re: Not able to boot Linux-2.6.33.2

2010-04-27 Thread Simon Kitching
On Tue, 2010-04-27 at 13:06 +0530, Mukesh Yadav wrote: > Hello everyone, > > I wanted to upgrade form Linux-2.6.15-52-386 kernel to vanila > Linux-2.6.33.2 kernel from kernel.org. I compiled and installed kernel > with defualt configurion (except for disabling booting from NFS) > > Following i

Re: best way to read kernel code

2010-04-26 Thread Simon Kitching
On Mon, 2010-04-26 at 13:35 +0530, SandeepKsinha wrote: > On Mon, Apr 26, 2010 at 12:58 PM, Onkar Mahajan wrote: > > Hi All , > > > > What is the fastest and the best way /method to read > > lots of kernel code ? > > > > Book: Understanding the Linux Kernel, O'reily publication > Net: lxr.linux.n

Re: why INITIAL_JIFFIES is -300 * HZ?

2010-04-19 Thread Simon Kitching
On Tue, 2010-04-20 at 11:09 +0530, Nagaprabhanjan Bellari wrote: > I am curious to know why jiffies is initialized with INITIAL_JIFFIES > which is -300 * HZ? It is mentioned in the source that jiffies, when > initialized with this value, will make it overflow in 5 minutes. > > Can somebody tell m

Re: Researching ATA TRIM command

2010-04-15 Thread Simon Kitching
On Thu, 2010-04-15 at 14:25 -0700, Bill Weiler wrote: > All, > I found the task file call in libata-scsi.c in kernel 2.6.33. > > TRIM seem to be a SCSI to ATA translation of "WRITE SAME 16". > > Under what conditions would "WRITE SAME 16" be called? > > (I am not