From 8ee679f837aed09f2abe5d47186505f98ccb4b6d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 19 Nov 2015 03:47:04 +0100 Subject: Inform user-space about read request size as well --- driver/ioctl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver/ioctl.c') diff --git a/driver/ioctl.c b/driver/ioctl.c index 67cdc52..0814fc8 100644 --- a/driver/ioctl.c +++ b/driver/ioctl.c @@ -448,9 +448,11 @@ static int ioctl_device_state(pcidriver_privdata_t *privdata, unsigned long arg) info = (pcilib_device_state_t) { .iommu = iommu_present(privdata->pdev->dev.bus), .mps = pcidriver_pcie_get_mps(privdata->pdev), + .readrq = pcie_get_readrq(privdata->pdev), .dma_mask = privdata->pdev->dma_mask }; + WRITE_TO_USER(pcilib_device_state_t, info); return 0; -- cgit v1.2.3