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

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

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 module B

Re: Add Data to packet header

2014-07-16 Thread Denis Kirjanov
CCing the list On 7/16/14, Denis Kirjanov kirja...@gmail.com wrote: On 7/16/14, Robert Clove cloverob...@gmail.com 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;

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 chetanna...@gmail.com wrote: On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza j...@jjdev.com 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

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 chetanna...@gmail.com wrote: On Wed, Jul 16, 2014 at 6:39 PM, John de la Garza j...@jjdev.com wrote: On Wed, Jul 16, 2014 at 04:00:18PM +0530, Chetan Nanda

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 A, B

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

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

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