unlocking the recv

2015-06-03 Thread Grzegorz Dwornicki
Hello I am wondering with pure theoretical task. Is there a posibility to unlock the recv function without making the socket nonblocking? Lets assume that we have our server and client: server ---network --- client Server callend the recv function and waits for the data from client soo its

Re: Accessing Ram on PCI card

2015-06-03 Thread Robert Clove
Hi I have a PCI based card which have few RAM on it. I have to copy the text file to RAM and read it too. Actually i want my pci device to be exposed as block device and then mount file system on it. On Tue, Jun 2, 2015 at 6:59 AM, Greg KH gre...@linuxfoundation.org wrote: On Mon, Jun 01, 2015

RE: unlocking the recv

2015-06-03 Thread Jeff Haran
-Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- boun...@kernelnewbies.org] On Behalf Of Grzegorz Dwornicki Sent: Wednesday, June 03, 2015 3:42 AM To: kernelnewbies@kernelnewbies.org Subject: unlocking the recv Hello I am wondering with pure

Fwd: How flowi4 variable fl-u.ip4.fl4_gre_key variable updates in kernel code for GRE

2015-06-03 Thread Harsh Jain
Hi All, In which function kernel fills the GRE key value in fl-u.ip4.fl4_gre_key struct flowi4.I am trying to apply IPSEC encrytion policy based on GRE key in packet. The function xfrm_flowi_sport prints uli-gre_key = 0 for GRE packets. Is it a bug in kernel code?. Regards Harsh Jain

Re: unlocking the recv

2015-06-03 Thread Valdis . Kletnieks
On Wed, 03 Jun 2015 12:42:28 +0200, Grzegorz Dwornicki said: Server callend the recv function and waits for the data from client soo its blocked in wait_queue. The socket is in nonblocking state. Can this proces/thread be unblocked on demand? Umm... according to the manpage for 'man 2 recv':

Change proc/pid/cmdline to 8k

2015-06-03 Thread Navin P
Hi, I want to change the cmdline of a process to support 8096 . It works well on ppc where the page size is 65k. But when i try to increase it on x86 (i686) http://lxr.free-electrons.com/source/fs/proc/base.c by doing 6*PAGE_SIZE, i get kernel panic after some time 199 static int

Re: Change proc/pid/cmdline to 8k

2015-06-03 Thread Greg KH
On Thu, Jun 04, 2015 at 09:52:08AM +0530, Navin P wrote: Hi, I want to change the cmdline of a process to support 8096 . It works well on ppc where the page size is 65k. But when i try to increase it on x86 (i686) http://lxr.free-electrons.com/source/fs/proc/base.c by doing