Changeset 417aaafb in mainline for uspace/lib/virtio/virtio-pci.h


Ignore:
Timestamp:
2018-06-25T21:37:48Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e3107e2
Parents:
ea6840d
Message:

Protect the virtqueue with a mutex

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/virtio/virtio-pci.h

    rea6840d r417aaafb  
    3636#include <pci_dev_iface.h>
    3737#include <ddi.h>
     38#include <fibril_synch.h>
    3839
    3940#define VIRTIO_PCI_CAP_CAP_LEN(c)       ((c) + 2)
     
    131132        size_t size;
    132133
     134        /** Mutex protecting access to this virtqueue */
     135        fibril_mutex_t lock;
     136
    133137        /**
    134138         * Size of the queue which determines the number of descriptors and
Note: See TracChangeset for help on using the changeset viewer.