lkml.org 
[lkml]   [2008]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 6/8 v4] PCI: support the SR-IOV capability
    On Tue, Oct 14, 2008 at 06:59:28PM +0800, Yu Zhao wrote:
    > +struct pci_iov {
    > + int cap; /* capability position */
    > + int align; /* page size used to map memory space */
    > + int is_enabled; /* status of SR-IOV */
    > + int nentries; /* number of sysfs entries used by PF driver */
    > + u16 totalvfs; /* total VFs associated with the PF */
    > + u16 initialvfs; /* initial VFs associated with the PF */
    > + u16 numvfs; /* number of VFs available */
    > + u16 offset; /* first VF Routing ID offset */
    > + u16 stride; /* following VF stride */
    > + struct mutex mutex; /* lock for SR-IOV */
    > + struct kobject kobj; /* koject for IOV */

    Why isn't this a real struct device?

    That way you get all of the proper userspace notification and the like,
    with kobjects, you do not.

    thanks,

    greg k-h


    \
     
     \ /
      Last update: 2008-10-14 16:43    [W:0.020 / U:0.628 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site