Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Fix usages of PSLIST_ENTRY_* in the example code
details: https://anonhg.NetBSD.org/src/rev/c056baf713e5
branches: trunk
changeset: 344907:c056baf713e5
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Apr 27 08:18:40 2016 +0000
description:
Fix usages of PSLIST_ENTRY_* in the example code
diffstat:
share/man/man9/psref.9 | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 47b4ddb14234 -r c056baf713e5 share/man/man9/psref.9
--- a/share/man/man9/psref.9 Wed Apr 27 08:05:31 2016 +0000
+++ b/share/man/man9/psref.9 Wed Apr 27 08:18:40 2016 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: psref.9,v 1.4 2016/04/27 08:05:31 ozaki-r Exp $
+.\" $NetBSD: psref.9,v 1.5 2016/04/27 08:18:40 ozaki-r Exp $
.\"
.\" Copyright (c) 2016 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -302,7 +302,7 @@
f = kmem_alloc(sizeof(*f), KM_SLEEP);
f->f_key = key;
f->f_... = ...;
- PSLIST_ENTRY_INIT(&f->f_entry);
+ PSLIST_ENTRY_INIT(f, f_entry);
psref_target_init(&f->f_target, frobbotzim_prc);
mutex_enter(&frobbotzim.lock);
@@ -379,7 +379,7 @@
if (f != NULL) {
/* Wait for all readers to drain before freeing. */
psref_target_destroy(&f->f_target, frobbotzim_prc);
- PSLIST_ENTRY_DESTROY(&f->f_entry);
+ PSLIST_ENTRY_DESTROY(f, f_entry);
kmem_free(f, sizeof(*f));
}
}
Home |
Main Index |
Thread Index |
Old Index