Re: How to write config to include/linux/autoconf.h

2009-04-08 Thread Akshay Sumant
Hi loody, all CONFIG_ symbols from config file which are set (i.e set to 'y') will get added into autoconf.h On Wed, Apr 8, 2009 at 6:46 PM, loody wrote: > Dear all: > I find not all CONFIG_ in .config will be written to autoconf.h. > And it seems has no relationship with the type of

Re: Get current network namespace

2009-04-08 Thread Haibin Wang
Hi Michael, Sharwan and all folks, I finally found the correct API to do so in kernel space. Following Sharwan's tip of getting namespace from device, I did more grep through the device code, so it leads to this function call: static struct net *get_net_ns_by_pid(pid_t pid) in file net/core/rtne

Re: Get current network namespace

2009-04-08 Thread Haibin Wang
Hi Sharwan, Thank you very much for the answer. Yes, I read the network namespace code, you could get namespace from sk by calling sock_net(sk), and it is also available from device. For our case, it is how to get the namespace in the first place, so we can match against open socks and/or devices

What is the right way to setup MIPS timer irq in 2.6.29?

2009-04-08 Thread David Wuertele
Has the system timer paradigm changed between 2.6.18 and 2.6.29? I'm trying to update my Broadcom-based embedded system to 2.6.29, and I'm running into problems getting the system timer to run. I'm looking for a clue about how to port forward my arch/mips/brcmstb/* files, specifically I want to wri

Re: Question about platform_device.dev

2009-04-08 Thread Greg KH
On Wed, Apr 08, 2009 at 04:15:12PM +0800, loody wrote: > Dear all: > when I register a platform driver with _probe, the kernel will > call _probe with platform_device. > And I know the platform_device is passed with the same name which I > give in platform_driver. > My questions is: > I

Re: Netlink Socket: trouble while using netlink_broadcast

2009-04-08 Thread Sandeep K Sinha
Milind can you help Thierry on this. On Wed, Apr 8, 2009 at 7:14 PM, Thierry wrote: > Hi, > > I want to use netlink socket between kernel and userspace in order to > get some information from kernel code. > I use netlink_broadcast function in order to send information to a > specific group, and

Netlink Socket: trouble while using netlink_broadcast

2009-04-08 Thread Thierry
Hi, I want to use netlink socket between kernel and userspace in order to get some information from kernel code. I use netlink_broadcast function in order to send information to a specific group, and my user-level code connect to this socket with the correct groupId but doesn't receive anythings.

How to write config to include/linux/autoconf.h

2009-04-08 Thread loody
Dear all: I find not all CONFIG_ in .config will be written to autoconf.h. And it seems has no relationship with the type of parameter, like bool, tristate, string, etc. If I want some CONFIG_ written into autoconf.h, how can I do that? appreciate your help, miloody -- To unsubscribe from

Re: logging process scheduling stats

2009-04-08 Thread pradeep singh
Not sure, if it will help you or not but did you look at ftrace? Thanks, --Pradeep On Wed, Apr 8, 2009 at 3:29 PM, Sukanto Ghosh wrote: > Hi, > > I want to log the following activities with timestamps - *as precisely > as possible* : > i.    enqueuing of a process > ii.   dequeuing of

Re: SSP (in SAS)Transport Protocol

2009-04-08 Thread pradeep singh
On Wed, Apr 8, 2009 at 5:06 PM, Ramya Desai wrote: > Dear Experts, > > I wanted to study the SSP transport protocol in Linux. When I looked > into the kernel source code I Didn't find the correct core. > Could anyone direct me to find the correct path of SSP. Use grep over your kernel source tree

Re: SSP (in SAS)Transport Protocol

2009-04-08 Thread pradeep singh
On Wed, Apr 8, 2009 at 5:06 PM, Ramya Desai wrote: > Dear Experts, > > I wanted to study the SSP transport protocol in Linux. When I looked > into the kernel source code I Didn't find the correct core. > Could anyone direct me to find the correct path of SSP. You did not find what SSP or SAS code

SSP (in SAS)Transport Protocol

2009-04-08 Thread Ramya Desai
Dear Experts, I wanted to study the SSP transport protocol in Linux. When I looked into the kernel source code I Didn't find the correct core. Could anyone direct me to find the correct path of SSP. Thanks in Advance, RD -- To unsubscribe from this list: send an email with "unsubscribe kernelnew

logging process scheduling stats

2009-04-08 Thread Sukanto Ghosh
Hi, I want to log the following activities with timestamps - *as precisely as possible* : i.enqueuing of a process ii. dequeuing of a process iii. a process starts executing on cpu iv. a process is preempted/yeilds the cpu What is the best (precise, efficient and easy) way of doing so ?

Question about platform_device.dev

2009-04-08 Thread loody
Dear all: when I register a platform driver with _probe, the kernel will call _probe with platform_device. And I know the platform_device is passed with the same name which I give in platform_driver. My questions is: In platfrm_devicde.dev, there are several parameters like below:

Re: Get current network namespace

2009-04-08 Thread Sharwan Joram
A namespace parameter is obtained in every function which creates the socket. This namespace field is present in the sk_buff structure which is filled up either by the process which is creating the socket or in second case from the device it is received. HTH Regards, Sharwan On Wed, Apr 8, 2009

Re: Question about ci drivers in dvb

2009-04-08 Thread Sharwan Joram
Luc was working on to provide the support for this device on Linux in Year 2008. I'am not sure about it's current status but you can visit the project home page and check the status : http://www.bsc-bvba.be/linux/dvb/ Regards Sharwan On Wed, Apr 8, 2009 at 12:09 PM, loody wrote: > Dear all: >