Thread (45 messages) 45 messages, 12 authors, 2010-09-03

Re: [PATCH 01/19] User-space API definition

From: Nikos Mavrogiannopoulos <hidden>
Date: 2010-08-21 07:35:47
Also in: lkml

2010/8/20 Stefan Richter [off-list ref]:
quoted
+struct ncr_session_input_data {
+     const void __user *data;
+     __kernel_size_t data_size;
+};
+
+};
Why not using fixed-size fit-all members?
struct ncr_session_input_data {
       __u64 data;             /* user pointer, cast to/from u64 */
       __u32 data_size;        /* or __u64? */
};
A reason is that using (void*) is cleaner as an API. It avoids the
pointer to int casting and the warnings that such a cast will have.

regards,
Nikos
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help