Deleted Added
full compact
g_geom.9 (127371) g_geom.9 (129386)
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_geom.9 127371 2004-03-24 14:25:46Z pjd $
25.\" $FreeBSD: head/share/man/man9/g_geom.9 129386 2004-05-18 12:12:07Z le $
26.\"
27.Dd January 16, 2004
28.Dt g_geom 9
29.Os
30.Sh NAME
31.Nm g_new_geomf ,
32.Nm g_destroy_geom
33.Nd "geom management"

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

48The geom's name is not really important, it is only used in the XML
49dump and for debugging purposes.
50There can be many geoms with the same name.
51.Pp
52The
53.Fn g_new_geomf
54function creates a new geom, which will be an instance of the class
55.Fa mp .
26.\"
27.Dd January 16, 2004
28.Dt g_geom 9
29.Os
30.Sh NAME
31.Nm g_new_geomf ,
32.Nm g_destroy_geom
33.Nd "geom management"

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

48The geom's name is not really important, it is only used in the XML
49dump and for debugging purposes.
50There can be many geoms with the same name.
51.Pp
52The
53.Fn g_new_geomf
54function creates a new geom, which will be an instance of the class
55.Fa mp .
56The geom name is created in a printf\-like way from the rest of the arguments.
56The geom's name is created in a printf\-like way from the rest of the arguments.
57.Pp
58The
59.Fn g_destroy_geom
57.Pp
58The
59.Fn g_destroy_geom
60function destroys the given geom imediately and cancels all related pending
60function destroys the given geom immediately and cancels all related pending
61events.
62.Pp
61events.
62.Pp
63Structure
63The
64.Vt g_geom
64.Vt g_geom
65contains fields, that should be set by the caller after geom creation, but before
65structure
66contains fields that should be set by the caller after geom creation, but before
66creating any providers or consumers related to this geom (not all are required):
67.Bl -inset -offset indent
68.It Vt "g_start_t *" Va start
69Pointer to a function used for I/O processing.
70.It Vt "g_spoiled_t *" Va spoiled
71Pointer to a function used for consumers spoiling.
72.It Vt "g_dumpconf_t *" Va dumpconf
73Pointer to a function used for configuration in XML format dumping.

--- 126 unchanged lines hidden ---
67creating any providers or consumers related to this geom (not all are required):
68.Bl -inset -offset indent
69.It Vt "g_start_t *" Va start
70Pointer to a function used for I/O processing.
71.It Vt "g_spoiled_t *" Va spoiled
72Pointer to a function used for consumers spoiling.
73.It Vt "g_dumpconf_t *" Va dumpconf
74Pointer to a function used for configuration in XML format dumping.

--- 126 unchanged lines hidden ---