Passing Structure Parameters to System Calls
When structures are passed to or from system calls, whether by value or by reference, the layout of the structure in the application might not match the layout of the same structure in the system call.
There are two ways that system calls can process structures passed from or to applications: structure reshaping and dual implementation.