Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2008 14:26:45 +0200
From:      "Riaan Kruger" <riaank@gmail.com>
To:        "FreeBSD Questions" <freebsd-questions@freebsd.org>
Subject:   Prepending data to struct uio in kernel
Message-ID:  <85c4b1850807240526y353f3175m65823a071dd8f6a0@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?85c4b1850807240526y353f3175m65823a071dd8f6a0>