]> Zhao Yanbai Git Server - minix.git/commit
Block protocol: add user endpoint to IOCTL request 65/965/2
authorDavid van Moolenbroek <david@minix3.org>
Fri, 26 Jul 2013 22:49:49 +0000 (00:49 +0200)
committerLionel Sambuc <lionel@minix3.org>
Wed, 19 Feb 2014 10:22:15 +0000 (11:22 +0100)
commit95624ae072fe1aad7bce9f6e144b7dc3b94abb71
treeb42dca0d94be5605b8ae7f40dc0e3244143e0a12
parent113635b01970f6ff8dc67d7b1330ed3de5bb8afc
Block protocol: add user endpoint to IOCTL request

I/O control requests now come with the endpoint of the user process
that initiated the ioctl(2) call. It is stored in a new BDEV_USER
field, which is an alias for BDEV_FLAGS. The contents of this field
are to be used only in highly specific situations. It should be
preserved (not replaced!) by services that forward IOCTL requests,
and may be set to NONE for service-initiated IOCTL requests.

Change-Id: I68a01b9ce43eca00e61b985a9cf87f55ba683de4
16 files changed:
drivers/ahci/ahci.c
drivers/at_wini/at_wini.c
drivers/cat24c256/cat24c256.c
drivers/fbd/fbd.c
drivers/filter/driver.c
drivers/memory/memory.c
drivers/mmc/mmcblk.c
drivers/tda19988/tda19988.c
drivers/virtio_blk/virtio_blk.c
include/minix/bdev.h
include/minix/blockdriver.h
include/minix/com.h
lib/libbdev/bdev.c
lib/libblockdriver/driver.c
servers/vfs/device.c
test/blocktest/blocktest.c