Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1357975

question about pci_enable_msix_range

From Julia Lawall <julia.lawall@lip6.fr>
Newsgroups linux.kernel
Subject question about pci_enable_msix_range
Date 2016-03-15 11:30 +0100
Message-ID <rcUoG-If-23@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

I was looking at the following code in the file
drivers/vfio/pci/vfio_pci_intrs.c:

                ret = pci_enable_msix_range(pdev, vdev->msix, 1, nvec);
                if (ret < nvec) {
                        if (ret > 0)
                                pci_disable_msix(pdev);
                        kfree(vdev->msix);
                        kfree(vdev->ctx);
                        return ret;
                }

I was wondering what is the point of using a range of 1 .. nvec if there
is going to be a failure if the number of allocated irqs is less than
nvec?

thanks,
julia

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

question about pci_enable_msix_range Julia Lawall <julia.lawall@lip6.fr> - 2016-03-15 11:30 +0100
  Re: question about pci_enable_msix_range Alex Williamson <alex.williamson@redhat.com> - 2016-03-15 15:30 +0100
    Re: question about pci_enable_msix_range Julia Lawall <julia.lawall@lip6.fr> - 2016-03-15 15:40 +0100

csiph-web