Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/common/include/linux Add a reinit_completio...



details:   https://anonhg.NetBSD.org/src/rev/0b701b49dc15
branches:  trunk
changeset: 820561:0b701b49dc15
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Jan 11 11:42:09 2017 +0000

description:
Add a reinit_completion function

diffstat:

 sys/external/bsd/common/include/linux/completion.h |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 45b4213148ac -r 0b701b49dc15 sys/external/bsd/common/include/linux/completion.h
--- a/sys/external/bsd/common/include/linux/completion.h        Wed Jan 11 11:19:24 2017 +0000
+++ b/sys/external/bsd/common/include/linux/completion.h        Wed Jan 11 11:42:09 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: completion.h,v 1.5 2014/09/02 09:54:20 jmcneill Exp $  */
+/*     $NetBSD: completion.h,v 1.6 2017/01/11 11:42:09 skrll Exp $     */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -87,6 +87,16 @@
 }
 
 /*
+ * re-initialize a completion object.
+ */
+static inline void
+reinit_completion(struct completion *completion)
+{
+
+       completion->c_done = 0;
+}
+
+/*
  * Destroy a completion object.
  */
 static inline void



Home | Main Index | Thread Index | Old Index