Prepending data to struct uio in kernel

Riaan Kruger riaank at gmail.com
Thu Jul 24 12:55:08 UTC 2008


I wish to insert a small buffer into (actually in front of) a uio structure
received from userland through an ioctl call. I then want to map this uio
structure to a dma map.

Currently I am mallocing a new buffer, copying the uio data and my own data
to that buffer and then mapping the buffer to DMA.

Is it possible to insert data into a uio structure?

Are there any functions that might help me?

Is it a bad idea?

(I do hope this is not to the incorrect list)

Riaan


More information about the freebsd-questions mailing list