We use transformation rather than accessors as virtually ever driver
implements SIOCGIFMEDIA and all would have to be touched.
Keep the code readable by always performing copies and (possiably no-op)
transforms.
Differential D14996
Translate 32-bit ifmedia requests into native ones. brooks on Apr 7 2018, 12:07 AM. Authored by Tags None Referenced Files
Details We use transformation rather than accessors as virtually ever driver Keep the code readable by always performing copies and (possiably no-op)
Diff Detail
Event Timeline
Comment Actions Why do you need malloc() at all ? The structures seems to be not so large that the stack usage become a problem. |