Re: downstream pci walk

2014-07-16 Thread Amerei Acuna
Hi, Thank you for taking interest. I see no chance of that happening as I'm only two down stream ports of my pci switch. Upstream, I only use one port to connect the host pci bridge. Internally, it divides into multiple bridges. I'm thinking of walking downstream only _up_to_ the entry pci bridge

Re: downstream pci walk

2014-07-16 Thread Valdis . Kletnieks
On Thu, 17 Jul 2014 05:58:03 +0800, Amerei Acuna said: > I'm writing a custom PCI driver for a hobby endpoint. Due to some > "special", possibly unique, circumstance, I need to determine if two > devices form a pair. As I'm using a PCI switch to connect these two > devices, I'm thinking on the pos

downstream pci walk

2014-07-16 Thread Amerei Acuna
Hello I'm writing a custom PCI driver for a hobby endpoint. Due to some "special", possibly unique, circumstance, I need to determine if two devices form a pair. As I'm using a PCI switch to connect these two devices, I'm thinking on the possibility of checking if the two devices share a common pc

Exporting ioctls from out-of-tree module to userspace

2014-07-16 Thread Daniel Hilst Selli
I write an out-of-tree module and now want to export its ioctls to userspace by installing a header that my modules includes, I was looking for how to do it but can't get it.. I was trying header-y from https://www.kernel.org/doc/Documentation/kbuild/makefiles.txt but got: make[1]: *** No rule

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Abhishek Sharma
Hi, Is their some special reason for not using "rmmod" to unload module? rmmod will remove only the module which it is told to remove. Regards, Abhishek Sharma On Wednesday 16 July 2014 04:00 PM, Chetan Nanda wrote: > Hi, > > I am facing an issues with module unloading, > I have two modules say

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Greg KH
On Wed, Jul 16, 2014 at 08:57:38PM +0530, Chetan Nanda wrote: > > > > On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda wrote: > > > > On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza wrote: > > On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda wrote: > > A depends on

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Chetan Nanda
On Wed, Jul 16, 2014 at 8:49 PM, Chetan Nanda wrote: > > > On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza wrote: > >> On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda wrote: >> > A depends on B, so B is automatically loaded when A is loaded. >> > B module is also directly being used by

Re: Add Data to packet header

2014-07-16 Thread Denis Kirjanov
CCing the list On 7/16/14, Denis Kirjanov wrote: > On 7/16/14, Robert Clove wrote: > > Please don't reply privately > >> skb is the new skb >> and >> size is the size of the variable that i will push in new header >> For eg: >> struct my_head_struct { >> int a; >> }; >> unsigned int

Re: How to prevent a module from unloading when in used

2014-07-16 Thread John de la Garza
On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda wrote: > A depends on B, so B is automatically loaded when A is loaded. > B module is also directly being used by the user side code via misc > interface. >. > Now when I am unloading module A, via "modprobe -r A" it is also unloading > the mod

Re: Add Data to packet header

2014-07-16 Thread Denis Kirjanov
On 7/16/14, Robert Clove wrote: > Hi All, > > > I want to add data to the packet header. > > I used the skb_copy_expand to make the copy of the skb and data. > Now in the headroom i want to add some data. > How can i do that,please suggest . __skb_push(skb, ) to adjust the skb->data pointer > >

Add Data to packet header

2014-07-16 Thread Robert Clove
Hi All, I want to add data to the packet header. I used the skb_copy_expand to make the copy of the skb and data. Now in the headroom i want to add some data. How can i do that,please suggest . Regards ___ Kernelnewbies mailing list Kernelnewbies@ker

Re: How to prevent a module from unloading when in used

2014-07-16 Thread Chetan Nanda
Hi, I am facing an issues with module unloading, I have two modules say A, B A depends on B, so B is automatically loaded when A is loaded. B module is also directly being used by the user side code via misc interface. Now when I am unloading module A, via "modprobe -r A" it is also unloading t