g_access.9 (127371) | g_access.9 (127372) |
---|---|
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 127371 2004-03-24 14:25:46Z pjd $ | 25.\" $FreeBSD: head/share/man/man9/g_access.9 127372 2004-03-24 14:42:26Z 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 --- 34 unchanged lines hidden (view full) --- 68.Va 0 ) . 69.Pp 70Access method for provider's geom have to be defined (eg. gp->access). 71.Pp 72The topology lock must be held. 73.Sh RETURN VALUES 74.Fn g_attach 75returns the value 0 if successful; otherwise an error code is returned. | 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 --- 34 unchanged lines hidden (view full) --- 68.Va 0 ) . 69.Pp 70Access method for provider's geom have to be defined (eg. gp->access). 71.Pp 72The topology lock must be held. 73.Sh RETURN VALUES 74.Fn g_attach 75returns the value 0 if successful; otherwise an error code is returned. |
76Note, that 77.Fn g_access 78function cannot failed when arguments 79.Fa dcr , 80.Fa dcw 81and 82.Fa dce 83are less than or equal to 0. |
|
76.Sh ERRORS 77Possible errors: 78.Bl -tag -width Er 79.It Bq Er EPERM 80The function is trying to open with exclusive access count, but provider 81is already open for writting. 82.It Bq Er EPERM 83The function is trying to open for write, but provider is already exclusively --- 69 unchanged lines hidden --- | 84.Sh ERRORS 85Possible errors: 86.Bl -tag -width Er 87.It Bq Er EPERM 88The function is trying to open with exclusive access count, but provider 89is already open for writting. 90.It Bq Er EPERM 91The function is trying to open for write, but provider is already exclusively --- 69 unchanged lines hidden --- |