mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
linux-user: Add some random ioctls
Signed-off-by: Marco A L Barbosa <malbarbo@gmail.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
f3245d63a0
commit
d6d6d6fe17
3 changed files with 13 additions and 0 deletions
|
@ -1060,6 +1060,13 @@ struct target_pollfd {
|
|||
|
||||
#define TARGET_SIOCGIWNAME 0x8B01 /* get name == wireless protocol */
|
||||
|
||||
/* From <linux/random.h> */
|
||||
|
||||
#define TARGET_RNDGETENTCNT TARGET_IOR('R', 0x00, int)
|
||||
#define TARGET_RNDADDTOENTCNT TARGET_IOW('R', 0x01, int)
|
||||
#define TARGET_RNDZAPENTCNT TARGET_IO('R', 0x04)
|
||||
#define TARGET_RNDCLEARPOOL TARGET_IO('R', 0x06)
|
||||
|
||||
/* From <linux/fs.h> */
|
||||
|
||||
#define TARGET_BLKROSET TARGET_IO(0x12,93) /* set device read-only (0 = read-write) */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue