Skip to content

Instantly share code, notes, and snippets.

@naehrwert
Last active May 3, 2016 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naehrwert/6c7f02483eea591f57d7fa15cad7b420 to your computer and use it in GitHub Desktop.
Save naehrwert/6c7f02483eea591f57d7fa15cad7b420 to your computer and use it in GitHub Desktop.
int _ioctlv(int fd, int cmd, u32 num_in, u32 num_io, ioctlv_vec *vec, ...)
{
/* ... */
dev_ctxt *dev = get_dev(...);
u32 num_total = num_int + num_out;
/* ... */
/* Copy in vectors if num_total <= 8 else use external vectors. */
/* Check vector buffer addrs. */
/* ... */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment