Re: Adding new protocol to linux.

2016-03-28 Thread Manoj Nayak
Hi Daniel, Some of the Network application use two connections. One connection for control channel to send commands and status update. Other connection is used for real data transfer. For example: FTP. However this needs two socket. TCP talks about out-of-band data transfer using Urgent Pointer

Re: SWSUSP for arm

2016-03-28 Thread Greg KH
On Mon, Mar 28, 2016 at 09:51:40PM +0530, Ranjith T wrote: > Hi All, > > I have to port software suspend for IMX6 Dual lite board to reduce boot time. > But I really don't know how to do that. Could somebody assist me?. That sounds like a work assignment, do we get paid to do this? :) Also,

Re: Adding new protocol to linux.

2016-03-28 Thread Daniel.
Hey everybody, I see that sockets, protocols and network device drivers are pieces of a same puzzle. So after some digging and thinking I'm considering write the driver in such way that it only deals with data link layer, no socket bits. It should sit at 2nd OSI layer and let routing and

Re: Adding new protocol to linux.

2016-03-28 Thread Rami Rosen
Hi, Header files under include/net are for kernel internal use. Header files under include/uapi are for exposure to userspace: http://lxr.free-electrons.com/source/include/uapi/ Regards, Rami Rosen http://ramirose.wix.com/ramirosen בתאריך 28 במרץ 2016 18:04, "Manoj Nayak"

Re: Real-time audio over local network with good quality

2016-03-28 Thread Ricardo Biehl
2016-03-28 4:42 GMT-03:00 Henrik Austad : > On Sun, Mar 27, 2016 at 9:18 PM, Ricardo Biehl wrote: >> Hello guys! > > Hi Ricardo, > >> Sorry if this question is not part of the scope of this list. >> >> I'm developing a real-time microphone system that will

Re: Real-time audio over local network with good quality

2016-03-28 Thread Ricardo Biehl
2016-03-27 23:27 GMT-03:00 Rohit Vashist : > Hello Ricardo, > > Hope you are good. > I would suggest you post the query on alsa dev list(mail forum) for more > specific reply on your queries on ALSA driver. Ok, thanks :-) I'll do it! > Also,i kind of like the idea.Are

RE: SWSUSP for arm

2016-03-28 Thread Ranjith T
Hi All, I have to port software suspend for IMX6 Dual lite board to reduce boot time. But I really don't know how to do that. Could somebody assist me?. Note: I have arm-none-linux-gnueabi toolcain, linux kernel version 3.14, NAND Flash can be used to store suspended image Thanks, Ranjith.T,

Re: Adding new protocol to linux.

2016-03-28 Thread Manoj Nayak
> 1) Is it possible to write a new protocol for linux with an out of > tree module without modifing socket.h file? I think this has been already tried in the following code. http://lxr.free-electrons.com/source/include/net/bluetooth/bluetooth.h#L36

Re: unregister_input_polled_device() leads to null pointer deref

2016-03-28 Thread Okash Khawaja
> On 28 Mar 2016, at 14:55, Carlo Caione wrote: > >> On Mon, Mar 28, 2016 at 3:32 PM, Okash Khawaja >> wrote: >> Hi, >> >> I'm writing a i2c device driver. In probe(), among other things I call: >> >> polled_input = input_allocate_polled_device();

Re: Adding new protocol to linux

2016-03-28 Thread Manoj Nayak
> 2) Could netlink socket be used to solve this? .. and Netlink is used to transfer information between kernel and user-space processes. It consists of a standard sockets-based interface for user space processes and an internal kernel API for kernel modules. netlink socket does not call

Re: unregister_input_polled_device() leads to null pointer deref

2016-03-28 Thread Carlo Caione
On Mon, Mar 28, 2016 at 3:32 PM, Okash Khawaja wrote: > Hi, > > I'm writing a i2c device driver. In probe(), among other things I call: > > polled_input = input_allocate_polled_device(); > input_register_polled_device(polled_input); > > Then inside remove(), I extract the

unregister_input_polled_device() leads to null pointer deref

2016-03-28 Thread Okash Khawaja
Hi, I'm writing a i2c device driver. In probe(), among other things I call: polled_input = input_allocate_polled_device(); input_register_polled_device(polled_input); Then inside remove(), I extract the instance of input_polled_dev and call input_unregister_polled_device(polled_input); This

Re: Real-time audio over local network with good quality

2016-03-28 Thread Henrik Austad
On Sun, Mar 27, 2016 at 9:18 PM, Ricardo Biehl wrote: > Hello guys! Hi Ricardo, > Sorry if this question is not part of the scope of this list. > > I'm developing a real-time microphone system that will work over local > network using ALSA library and sockets API with IP