Deleted Added
full compact
g_access.9 (126864) g_access.9 (127371)
1.\"
2.\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\"
1.\"
2.\" Copyright (c) 2004 Pawel Jakub Dawidek <pjd@FreeBSD.org>
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright

--- 8 unchanged lines hidden (view full) ---

17.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/share/man/man9/g_access.9 126864 2004-03-11 22:22:03Z pjd $
25.\" $FreeBSD: head/share/man/man9/g_access.9 127371 2004-03-24 14:25:46Z pjd $
26.\"
27.Dd January 16, 2004
28.Dt g_access 9
29.Os
30.Sh NAME
31.Nm g_access
32.Nd "control access count between given consumer and its provider"
33.Sh SYNOPSIS

--- 61 unchanged lines hidden (view full) ---

95 struct g_consumer *cp;
96 void *ptr;
97 int error;
98
99 g_topology_assert();
100
101 /* Create new consumer on 'mygeom' geom. */
102 cp = g_new_consumer(mygeom);
26.\"
27.Dd January 16, 2004
28.Dt g_access 9
29.Os
30.Sh NAME
31.Nm g_access
32.Nd "control access count between given consumer and its provider"
33.Sh SYNOPSIS

--- 61 unchanged lines hidden (view full) ---

95 struct g_consumer *cp;
96 void *ptr;
97 int error;
98
99 g_topology_assert();
100
101 /* Create new consumer on 'mygeom' geom. */
102 cp = g_new_consumer(mygeom);
103 if (cp == NULL)
104 return;
105 /* Attach newly created consumer to given provider. */
106 if (g_attach(cp, pp) != 0) {
107 g_destroy_consumer(cp);
108 return;
109 }
110 /* Open provider for reading through our consumer. */
111 error = g_access(cp, 1, 0, 0);
112 if (error != 0) {

--- 42 unchanged lines hidden ---
103 /* Attach newly created consumer to given provider. */
104 if (g_attach(cp, pp) != 0) {
105 g_destroy_consumer(cp);
106 return;
107 }
108 /* Open provider for reading through our consumer. */
109 error = g_access(cp, 1, 0, 0);
110 if (error != 0) {

--- 42 unchanged lines hidden ---