Hi Matan,
Le mercredi 27 novembre 2013 à 10:21 +0200, Matan Barak a écrit :
> On 27/11/2013 12:02 AM, Yann Droneaud wrote:
...
> > INIT_UDATA(&udata, buf + sizeof cmd,
> > - (unsigned long) cmd.response + sizeof resp,
> > + (void __user *)(unsigned long)cmd.response +
On 27/11/2013 12:02 AM, Yann Droneaud wrote:
Currently, INIT_UDATA() does an implicit cast to a pointer,
so that 'response' address, eg. output buffer, can be used
as is to initialize a struct ib_udata:
do {\
(udata)->
Currently, INIT_UDATA() does an implicit cast to a pointer,
so that 'response' address, eg. output buffer, can be used
as is to initialize a struct ib_udata:
do {\
(udata)->inbuf = (void __user *) (ibuf); \