lkml.org 
[lkml]   [2014]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 3/5] char: ti-usim: Add driver for USIM module on AM43xx
On Thu, May 29, 2014 at 03:35:37PM +0530, Satish Patel wrote:
> >>+enum usim_card_mode {
> >>+ USIM_CARD_MODE_ASYNC = 0, /* asynchronous mode */
> >>+ USIM_CARD_MODE_SYNC_TYPE1, /* synchronous mode: Type 1 */
> >>+ USIM_CARD_MODE_SYNC_TYPE2, /* synchronous mode: Type 2 */
> >>+ USIM_CARD_MODE_SYNC_OTHER, /* Any other synchronous type */
> >>+};
> >>+struct usim_data {
> >>+ int slot;
> >>+ int rxexplen;
> >>+ int txlen;
> >>+ unsigned char apdu[256];
> >>+};

You need to use the proper variable types for a structure that is going
to cross the user/kernel boundry in an ioctl :(



\
 
 \ /
  Last update: 2014-05-29 18:41    [W:2.539 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site