Regarding parsing of cifs header

2014-05-26 Thread Ramana Reddy
Hi All, I would like to know how to extract the cifs protocol header from skb buffer in the linux kernel. I want to parse the cifs header and do some stuff based on the content of the header. Help in this regards is highly appreciated. Best Regards, Ramana.

Re: Regarding parsing of cifs header

2014-05-26 Thread Valdis . Kletnieks
On Mon, 26 May 2014 12:21:12 +0530, Ramana Reddy said: I would like to know how to extract the cifs protocol header from skb buffer in the linux kernel. I want to parse the cifs header and do some stuff based on the content of the header. Depending what you are trying to do, it may be best

Re: Regarding parsing of cifs header

2014-05-26 Thread Ramana Reddy
Thanks for your reply. First thing is that I do not want to modify the existing cifs driver. I have my own virtual Ethernet driver, where the skb buffer is available to parse. Now, I want to extract the cifs header from this skb buffer, and based on the cifs header contents ( mainly I am looking

Re: Regarding parsing of cifs header

2014-05-26 Thread Pranay Srivastava
On Mon, May 26, 2014 at 1:20 PM, Ramana Reddy gtvrre...@gmail.com wrote: Thanks for your reply. First thing is that I do not want to modify the existing cifs driver. I have my own virtual Ethernet driver, where the skb buffer is available to parse. Now, I want to extract the cifs header from

Re: Regarding parsing of cifs header

2014-05-26 Thread Ramana Reddy
Hi Pranay Srivastava, Thanks for your reply. I just want to copy the payload into the buffer with out cloning or copying of skb to reduce the delay as it has to do on every packet. Is there any method in the linux kernel to get only the payload after stripping off the TCP header. Thanks,

Re: How to enable zramfs in android...

2014-05-26 Thread sandeep kumar
Dear All Thanks for your help. I could activate zram0, after doing the mkswap on the device. These all steps i followed, echo 50M /sys/block/zram0/disksize mkswap /dev/block/zram0 swapon -p 100 /dev/block/zram0 after that, i saw my swap partition is being used. From the stats i saw 44MB RAM

Writing kernel in C

2014-05-26 Thread Saurabh Jain
Hello every one ! I want to make a new kernel in C for educational purpose . Any one can help me , from where i should start , any step by step guide to tell what i should do next ? ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: Writing kernel in C

2014-05-26 Thread Julio Faracco
Hi Saurabh! This is a project of a friend of mine. It called TempOS. It is a kernel for educational purpose too. http://tempos-project.org/ The project is listed in OSDev Wiki too. http://wiki.osdev.org/Projects Att, -- Julio Cesar Faracco University of São Paulo - Brazil

How does device tree support for two different LCD panel in the same kernel image ?

2014-05-26 Thread Rahul Garg
I am having confusion with device tree concept. As device tree is used, so that same kernel image can be flashed on the different device (which are compatible). Now suppose I want to use two different LCD panel for same project, For that I will have 2 separate dtsi file which will be having panel

Re: Writing kernel in C

2014-05-26 Thread Peter Senna Tschudin
Here's another nice one: https://fosdem.org/2014/schedule/event/04_uk_escape/ On Mon, May 26, 2014 at 1:57 PM, Julio Faracco jcfara...@gmail.com wrote: Hi Saurabh! This is a project of a friend of mine. It called TempOS. It is a kernel for educational purpose too. http://tempos-project.org/

Re: Writing kernel in C

2014-05-26 Thread Fabrizio Curcio
On 05/26/2014 01:49 PM, Saurabh Jain wrote: Hello every one ! I want to make a new kernel in C for educational purpose . Any one can help me , from where i should start , any step by step guide to tell what i should do next ? Hi, take a look at that [0], it's a small unix clone designed

pgd table entry pointing null after process switching

2014-05-26 Thread Chan Kim
hi, linux folks, I'm seeing an 'unable to handle kernel paging request' after loading busybox elf loading. The context table is now pointing a new pgd table and the releavant pgd table entry is pointing null. What could be the cause? the address to access is frame buffer that I had linux

Re: Regarding parsing of cifs header

2014-05-26 Thread Pranay Srivastava
On Monday, May 26, 2014, Ramana Reddy gtvrre...@gmail.com wrote: Hi Pranay Srivastava, Thanks for your reply. I just want to copy the payload into the buffer with out cloning or copying of skb to reduce the delay as it has to do on every packet. Is there any method in the linux kernel to get

Unexpected driver interrupt behavior during init

2014-05-26 Thread Alvin Abitria
I am currently developing a PCI block driver and can use only MSI interrupt.   During interrupt initialization, I called the pci_enable_msi and request_irq with following sample irq initialization function - static int mydev_init_irq(struct mydevice *dev_ptr) {         int error;         struct

Re: Writing kernel in C

2014-05-26 Thread Abu Rasheda
1. It called TempOS. It is a kernel for educational purpose too. http://tempos-project.org The project is listed in OSDev Wiki too http://wiki.osdev.org/Projects 2. Here's another nice one: https://fosdem.org/2014/schedule/event/04_uk_escape 3. take a look at that [0], it's a small

Re: Regarding parsing of cifs header

2014-05-26 Thread Ramana Reddy
Thank you very much Pranay Srivastava. Will look at all your points and revert back if I have any issues. On Mon, May 26, 2014 at 8:36 PM, Pranay Srivastava pran...@gmail.comwrote: On Monday, May 26, 2014, Ramana Reddy gtvrre...@gmail.com wrote: Hi Pranay Srivastava, Thanks for your

Re: Writing kernel in C

2014-05-26 Thread John de la Garza
On Mon, May 26, 2014 at 05:19:59PM +0530, Saurabh Jain wrote: Hello every one ! I want to make a new kernel in C for educational purpose . Any one can help me , from where i should start , any step by step guide to tell what i should do next ? This helped me:

How to trace the send() in client call

2014-05-26 Thread Robert Clove
Hi All, I need your help. I have written the client server program in which client is sending the packets to the server. I want to trace the send() that is used in the client program actually want to trace the system call the packet traverses . How to trace ? Regards

Download Linus's latest git tree

2014-05-26 Thread Anurudh Tiwari
Hi, I want to download the latest kernel version using git. Trying following command git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git it takes very long time and tries to download whole repository. But i need only latest stable version. Any way to get it??

Re: Download Linus's latest git tree

2014-05-26 Thread Lucas Tanure
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git -- Lucas Tanure +55 (19) 988176559 ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Download Linus's latest git tree

2014-05-26 Thread bojan prtvar
On Mon, May 26, 2014 at 7:50 PM, Anurudh Tiwari anurudhtripa...@gmail.com wrote: Hi, I want to download the latest kernel version using git. Trying following command git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git it takes very long time and tries to

Re: How to trace the send() in client call

2014-05-26 Thread Augusto Mecking Caringi
On Mon, May 26, 2014 at 1:48 PM, Robert Clove cloverob...@gmail.com wrote: Hi All, I need your help. I have written the client server program in which client is sending the packets to the server. I want to trace the send() that is used in the client program actually want to trace the

error in oldconfig

2014-05-26 Thread Nada Saif
Hi, Why this appear to me when I use make oldconfig : *** Error during writing of the configuration. make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 mkdir: cannot create directory `arch/x86/syscalls/../include/generated': Permission denied mkdir: cannot create

Re: error in oldconfig

2014-05-26 Thread Valdis . Kletnieks
On Tue, 27 May 2014 03:08:53 +0300, Nada Saif said: Why this appear to me when I use make oldconfig : *** Error during writing of the configuration. make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 mkdir: cannot create directory

Re: Download Linus's latest git tree

2014-05-26 Thread Valdis . Kletnieks
On Mon, 26 May 2014 15:04:17 -0300, Lucas Tanure said: git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Note that '--depth 1' results in a faster initial download, but it has a number of disadvatages - you can't clone it into another tree of yours, nor