Skip to content

Commit

Permalink
Copyright headers
Browse files Browse the repository at this point in the history
Signed-off-by: Lucy <[email protected]>
  • Loading branch information
lucypa authored and abrandnewusername committed Apr 8, 2022
1 parent 0905e4f commit e1bcd55
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions libsharedringbuffer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Copyright 2022, Trustworthy Systems, UNSW
#
# Copyright 2022, UNSW (ABN 57 195 873 179)
# SPDX-License-Identifier: BSD-2-Clause
#

cmake_minimum_required(VERSION 3.7.2)
Expand Down
3 changes: 2 additions & 1 deletion libsharedringbuffer/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!--
Copyright ?
Copyright 2022, UNSW (ABN 57 195 873 179)
SPDX-License-Identifier: CC-BY-SA-4.0
-->

libsharedringbuffer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* Copyright 2022, UNSW ???
* Copyright 2022, UNSW (ABN 57 195 873 179)
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#pragma once
Expand Down
4 changes: 3 additions & 1 deletion libsharedringbuffer/src/shared_ringbuffer.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/*
* Copyright 2022, UNSW ??
* Copyright 2022, UNSW (ABN 57 195 873 179)
*
* SPDX-License-Identifier: BSD-2-Clause
*/

#include <shared_ringbuffer/shared_ringbuffer.h>
Expand Down
2 changes: 1 addition & 1 deletion libvirtqueue/include/virtqueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ int virtqueue_gather_available(virtqueue_device_t *vq, virtqueue_ring_object_t *
* @return 1 on success, 0 on failure (no more buffer available)
*/
int virtqueue_gather_used(virtqueue_driver_t *vq, virtqueue_ring_object_t *robj,
void **buf, unsigned *len, vq_flags_t *flag);
void **buf, unsigned *len, vq_flags_t *flag);
4 changes: 1 addition & 3 deletions libvirtqueue/src/virtqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ int virtqueue_add_available_buf(virtqueue_driver_t *vq, virtqueue_ring_object_t
vq->avail_ring->ring[vq->avail_ring->idx] = idx;
vq->avail_ring->idx = (vq->avail_ring->idx + 1) & (vq->queue_len - 1);
}

return 1;
}

Expand All @@ -154,7 +153,6 @@ int virtqueue_add_used_buf(virtqueue_device_t *vq, virtqueue_ring_object_t *robj
vq->used_ring->ring[cur].id = robj->first;
vq->used_ring->ring[cur].len = len;
vq->used_ring->idx = (cur + 1) & (vq->queue_len - 1);

return 1;
}

Expand Down Expand Up @@ -216,4 +214,4 @@ int virtqueue_gather_used(virtqueue_driver_t *vq, virtqueue_ring_object_t *robj,
}
robj->cur = vq_pop_desc(vq, robj->cur, buf, len, flag);
return 1;
}
}

0 comments on commit e1bcd55

Please sign in to comment.