Thu Sep 3 00:23:57 2020 UTC ()
atomic_load/store_* appeared in NetBSD 9, not 10.

Pullup preceded release of 9.0.


(riastradh)
diff -r1.5 -r1.6 src/share/man/man9/atomic_loadstore.9

cvs diff -r1.5 -r1.6 src/share/man/man9/atomic_loadstore.9 (expand / switch to unified diff)

--- src/share/man/man9/atomic_loadstore.9 2019/12/08 00:00:59 1.5
+++ src/share/man/man9/atomic_loadstore.9 2020/09/03 00:23:57 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: atomic_loadstore.9,v 1.5 2019/12/08 00:00:59 uwe Exp $ 1.\" $NetBSD: atomic_loadstore.9,v 1.6 2020/09/03 00:23:57 riastradh Exp $
2.\" 2.\"
3.\" Copyright (c) 2019 The NetBSD Foundation 3.\" Copyright (c) 2019 The NetBSD Foundation
4.\" All rights reserved. 4.\" All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to The NetBSD Foundation 6.\" This code is derived from software contributed to The NetBSD Foundation
7.\" by Taylor R. Campbell. 7.\" by Taylor R. Campbell.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -756,27 +756,27 @@ or similar to enable resource reclamatio @@ -756,27 +756,27 @@ or similar to enable resource reclamatio
756 get_snapshot(void) 756 get_snapshot(void)
757 { 757 {
758 return atomic_load_consume(&current_d); 758 return atomic_load_consume(&current_d);
759 } 759 }
760.Ed 760.Ed
761.Sh CODE REFERENCES 761.Sh CODE REFERENCES
762.Pa sys/sys/atomic.h 762.Pa sys/sys/atomic.h
763.Sh SEE ALSO 763.Sh SEE ALSO
764.Xr atomic_ops 3 , 764.Xr atomic_ops 3 ,
765.Xr membar_ops 3 , 765.Xr membar_ops 3 ,
766.Xr pserialize 9 766.Xr pserialize 9
767.Sh HISTORY 767.Sh HISTORY
768These atomic operations first appeared in 768These atomic operations first appeared in
769.Nx 10.0 . 769.Nx 9.0 .
770.Sh CAVEATS 770.Sh CAVEATS
771C11 formally specifies that all subexpressions, except the left 771C11 formally specifies that all subexpressions, except the left
772operands of the 772operands of the
773.Ql && , 773.Ql && ,
774.Ql || , 774.Ql || ,
775.Ql ?: , 775.Ql ?: ,
776and 776and
777.Ql \&, 777.Ql \&,
778operators and the 778operators and the
779.Li kill_dependency() 779.Li kill_dependency()
780macro, carry dependencies for which 780macro, carry dependencies for which
781.Dv memory_order_consume 781.Dv memory_order_consume
782guarantees ordering, but most or all implementations to date simply 782guarantees ordering, but most or all implementations to date simply