linux-user: Support ioctls whose parameter size is not constant
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 6 Jan 2011 15:04:17 +0000 (15:04 +0000)
committerRiku Voipio <riku.voipio@iki.fi>
Fri, 7 Jan 2011 15:20:37 +0000 (17:20 +0200)
commit5aab96ab4fd9b5e4864d4c6ecdbf1741c3828810
tree03c6406f1afefc72e7cefa3cc5efa589d923122d
parent6facde5d22194c684e936bb38ae274185842a975
linux-user: Support ioctls whose parameter size is not constant

Some ioctls (for example FS_IOC_FIEMAP) use structures whose size is
not constant. The generic argument conversion code in do_ioctl()
cannot handle this, so add support for implementing a special-case
handler for a particular ioctl which does the conversion itself.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/syscall.c