This patch adds comment documentation to visorchannel_tag struct

Signed-off-by: Erik Arfvidson <erik.arfvid...@unisys.com>
---
 drivers/staging/unisys/visorchannel/visorchannel_funcs.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c 
b/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
index 5fbd5ad..d53906e 100644
--- a/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
+++ b/drivers/staging/unisys/visorchannel/visorchannel_funcs.c
@@ -33,9 +33,13 @@ struct VISORCHANNEL_Tag {
        struct channel_header chan_hdr;
        uuid_le guid;
        ulong size;
-       BOOL needs_lock;
-       spinlock_t insert_lock;
-       spinlock_t remove_lock;
+       BOOL needs_lock; /* Some channels don't need lock due to simplicity */
+       /* The guest can remove from certain queues, but cannot insert into
+        * those queues. The guest can insert into other queues, but can't
+        * remove from those queues . This is based on the queue type.
+        */
+       spinlock_t insert_lock; /* Protects queue insertion variables */
+       spinlock_t remove_lock; /* Protects queue from removal variables */
 
        struct {
                struct signal_queue_header req_queue;
-- 
1.9.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to