VirtualBox

Ignore:
Timestamp:
Jul 9, 2012 3:10:00 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78983
Message:

NetShaper: R0 support (#5582)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/pdmnetshaper.h

    r41891 r42062  
    44
    55/*
    6  * Copyright (C) 2007-2012 Oracle Corporation
     6 * Copyright (C) 2011-2012 Oracle Corporation
    77 *
    88 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4242{
    4343    /** [R3] Pointer to the next group in the list. */
    44     struct PDMNSFILTER      *pNext;
     44    struct PDMNSFILTER              *pNext;
    4545    /** [R3] Pointer to the bandwidth group. */
    46     struct PDMNSBWGROUP     *pBwGroupR3;
     46    struct PDMNSBWGROUP             *pBwGroupR3;
     47    /** [R0] Pointer to the bandwidth group. */
     48    R0PTRTYPE(struct PDMNSBWGROUP *) pBwGroupR0;
    4749    /** Becomes true when filter fails to obtain bandwidth. */
    48     bool                     fChoked;
    49     /** The driver this filter is aggregated into. */
    50     PPDMINETWORKDOWN         pIDrvNet;
     50    bool                             fChoked;
     51    /** [R3] The driver this filter is aggregated into. */
     52    PPDMINETWORKDOWN                 pIDrvNet;
    5153} PDMNSFILTER;
    5254
     
    6163typedef struct PDMNETSHAPER *PPDMNETSHAPER;
    6264
     65
     66/**
     67 * Obtain bandwidth in a bandwidth group (R0 version).
     68 *
     69 * @returns VBox status code.
     70 * @param   pFilter         Pointer to the filter that allocates bandwidth.
     71 * @param   cbTransfer      Number of bytes to allocate.
     72 */
     73VMMR0DECL(bool) PDMR0NsAllocateBandwidth(PPDMNSFILTER pFilter, uint32_t cbTransfer);
    6374
    6475/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette