lkml.org 
[lkml]   [2016]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Input: evdev - add ioctl cmd EVIOCGBUFSIZE to get buffer size
From
On Sat, Jan 9, 2016 at 2:03 AM, One Thousand Gnomes
<gnomes@lxorguk.ukuu.org.uk> wrote:
> On Sat, 9 Jan 2016 01:50:42 +0530
> Aniroop Mathur <aniroop.mathur@gmail.com> wrote:
>
>> On Sat, Jan 9, 2016 at 1:43 AM, One Thousand Gnomes
>> <gnomes@lxorguk.ukuu.org.uk> wrote:
>> >> During system boot up, user space buf size is fixed, it cannot be
>> >> resized later and we cannot choose by hit&trial.
>> >> struct input_event* mBuffer = new input_event[mBuf];
>> >
>> > Who says that won't change ? Imagine a future case where plugging in a
>> > device changes the buffer size ?
>> >
>>
>> Ofcourse buffer size can be changed but it will also change the value of bufsize
>> variable and accordingly user space client should also change its buf size.
>
> If its hot plugged why shouldn't that value change dynamically after
> you've asked ?
>

Please put up your query clearly. what value ? what asked ?


> Alan

\
 
 \ /
  Last update: 2016-01-08 22:01    [W:2.832 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site