Re: question about V4L2_MEMORY_USERPTR on 64bit applications

2018-10-13 Thread Eugene Syromiatnikov
On Fri, Oct 12, 2018 at 10:52:51AM +0530, tbhar...@codeaurora.org wrote: > (in 64 bit userspace long is 32-bit) Not on Linux. $ cat /tmp/c.c int main(void) { return sizeof(long); } $ gcc /tmp/c.c $ ./a.out; echo $? 8 $ file ./a.out ./a.out: ELF 64-bit LSB pie executable, 64-bit PowerPC or

RE: question about V4L2_MEMORY_USERPTR on 64bit applications

2018-10-11 Thread tbhardwa
-ker...@vger.kernel.org; linux-media@vger.kernel.org Subject: Re: question about V4L2_MEMORY_USERPTR on 64bit applications sorry for wrong question, I really meet memory address truncated issue, when use V4L2 kernel APIs. in a kernel thread created by kernel_thread() I vm_mmap a shmem_file to

Re: question about V4L2_MEMORY_USERPTR on 64bit applications

2018-10-11 Thread Zhang, Ning A
ng Ning写道: > Hi, > > I have question about V4L2_MEMORY_USERPTR on 64bit applications. > > struct v4l2_buffer { > __u32 index; > __u32 type; > __u32 bytesused; > __u32 fl

Re: question about V4L2_MEMORY_USERPTR on 64bit applications

2018-10-11 Thread Bing Bu Cao
gt; Hi, > > I have question about V4L2_MEMORY_USERPTR on 64bit applications. > > struct v4l2_buffer { > __u32 index; > __u32 type; > __u32 bytesused; > __u32 flags; >

question about V4L2_MEMORY_USERPTR on 64bit applications

2018-10-11 Thread Zhang, Ning A
Hi, I have question about V4L2_MEMORY_USERPTR on 64bit applications. struct v4l2_buffer { __u32 index; __u32 type; __u32 bytesused; __u32 flags; __u32 field

Re: Question about V4L2_MEMORY_USERPTR

2012-07-05 Thread Laurent Pinchart
Hi Hans-Petter, On Monday 02 July 2012 21:07:56 Hans Petter Selasky wrote: > Hi Laurent and Sakari, > > For the sake of the matter, here is the driver in question: > http://www.freshports.org/multimedia/webcamd/ > > Under native-Linux (kernel mode): > > I've looked at the linux-media code a bit

Re: Question about V4L2_MEMORY_USERPTR

2012-07-02 Thread Hans Petter Selasky
> > On Fri, Mar 23, 2012 at 08:19:45AM +0100, Hans Petter Selasky wrote: > > > Hi, > > > > > > I have a question about V4L2_MEMORY_USERPTR: > > > > > > From which context are the kernel's "copy_to_user()" functions called > > >

Re: Question about V4L2_MEMORY_USERPTR

2012-07-02 Thread Laurent Pinchart
On Sunday 01 July 2012 17:00:58 Sakari Ailus wrote: > On Fri, Mar 23, 2012 at 08:19:45AM +0100, Hans Petter Selasky wrote: > > Hi, > > > > I have a question about V4L2_MEMORY_USERPTR: > > > > From which context are the kernel's "copy_to_

Re: Question about V4L2_MEMORY_USERPTR

2012-07-01 Thread Sakari Ailus
Hi Hans, On Fri, Mar 23, 2012 at 08:19:45AM +0100, Hans Petter Selasky wrote: > Hi, > > I have a question about V4L2_MEMORY_USERPTR: > > From which context are the kernel's "copy_to_user()" functions called in > relation to V4L2_MEMORY_USERPTR ? Can this be a

Question about V4L2_MEMORY_USERPTR

2012-03-23 Thread Hans Petter Selasky
Hi, I have a question about V4L2_MEMORY_USERPTR: >From which context are the kernel's "copy_to_user()" functions called in relation to V4L2_MEMORY_USERPTR ? Can this be a USB callback function or is it only syscalls, like read/write/ioctl that are allowed to call "