Re: Good design to expose debug info from kernel module

2015-03-27 Thread Elazar Leibovich
Thanks, didn't know netlink. You still need a solution to parse the sent message, where protocol buffers etc, can help. (e.g., binary data into struct mymodule_request). Or am I missing something? On Fri, Mar 27, 2015 at 3:33 AM, guy keren guy.choo.ke...@gmail.com wrote: take a look at this:

Re: Good design to expose debug info from kernel module

2015-03-27 Thread Elazar Leibovich
IMHO, C structs are no way near as usable as proper serialization format. For example, what about optional fields? What about variable length array? What about binary backwards compatibility? What about supporting other languages? It's not trivial to take a C struct and generate the proper

Re: Good design to expose debug info from kernel module

2015-03-27 Thread guy keren
i imagine, if you use the proper 'packing' pragmas, you can simply mempcy structures, without really writing serialization code (there's no endianess issues, with both sides running on the same host, by definition). --guy On 03/27/2015 10:03 AM, Elazar Leibovich wrote: Thanks, didn't know