VirtualBox

Changeset 13640 in vbox


Ignore:
Timestamp:
Oct 29, 2008 3:57:19 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38571
Message:

comments was added to slirp global mutexes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r13623 r13640  
    6565    int if_queued;
    6666#ifdef VBOX_WITH_SYNC_SLIRP
     67    /* mutex for accessing if_queued flag which used in if_start function and
     68     * and understanding that we need call if_start to send anything we have to
     69     * send.
     70     */
    6771    RTSEMMUTEX  if_queued_mutex;
    6872#endif
     
    7074    struct mbuf if_fastq;
    7175#ifdef VBOX_WITH_SYNC_SLIRP
     76    /*
     77     * if_fastq_mutex prevent concurrent adding/removing mbufs on
     78     * fast queue (mbufs) from this queue are processed in first order
     79     */
    7280    RTSEMMUTEX  if_fastq_mutex;
    7381#endif
    7482    struct mbuf if_batchq;
    7583#ifdef VBOX_WITH_SYNC_SLIRP
     84    /*
     85     * if_batchq_mutex prevent concurent adding/removing mbufs on
     86     * batch queue mbufs from this queue used if no mbufs on fast queue
     87     * and next_m doesn't point on mbuf scheduled to be processesed
     88     */
    7689    RTSEMMUTEX  if_batchq_mutex;
    7790#endif
    7891    struct mbuf *next_m;
    7992#ifdef VBOX_WITH_SYNC_SLIRP
     93    /*
     94     * next_m_mutex prevent concurrent assigning/reading
     95     * from pointer next_m, used for pointing next mbuf to be processed
     96     * it readed if no messages are not in fast queue, usually it assigned with
     97     * mbuf from batch queue
     98     */
    8099    RTSEMMUTEX  next_m_mutex;
    81100#endif
     
    89108    int mbuf_alloced, mbuf_max;
    90109#ifdef VBOX_WITH_SYNC_SLIRP
     110    /*
     111     * mbuf_alloced_mutex used to prevent concurent access to mbuf_alloced counter
     112     * which ticks on every allocation and readed to check it against limits
     113     */
    91114    RTSEMMUTEX  mbuf_alloced_mutex;
    92115#endif
     
    94117    struct mbuf m_freelist, m_usedlist;
    95118#ifdef VBOX_WITH_SYNC_SLIRP
     119    /*
     120     * m_freelist_mutex and m_usedlist_mutex are used to prevent concurrent access and modifications
     121     * of corresponded queues controlling allocation/utilization of mbufs
     122     */
    96123    RTSEMMUTEX  m_freelist_mutex;
    97124    RTSEMMUTEX  m_usedlist_mutex;
     
    121148    tcp_seq tcp_iss;
    122149#ifdef VBOX_WITH_SYNC_SLIRP
     150    /*
     151     * tcb_mutex used for control access to tcb queue of sockets
     152     * servising TCP connections and tcp_last_so field
     153     */
    123154    RTSEMMUTEX tcb_mutex;
    124155#endif
     
    142173    struct socket *udp_last_so;
    143174#ifdef VBOX_WITH_SYNC_SLIRP
     175    /*
     176     * udb_mutex used in similar to tcb_mutex way, but for handling udp connections
     177     */
    144178    RTSEMMUTEX udb_mutex;
    145179#endif
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