vfs_default.c (227697) | vfs_default.c (232317) |
---|---|
1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed 6 * to Berkeley by John Heidemann of the UCLA Ficus project. 7 * 8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1989, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed 6 * to Berkeley by John Heidemann of the UCLA Ficus project. 7 * 8 * Source: * @(#)i405_init.c 2.10 92/04/27 UCLA Ficus project --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 */ 34 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sys/kern/vfs_default.c 227697 2011-11-19 07:50:49Z kib $"); | 36__FBSDID("$FreeBSD: head/sys/kern/vfs_default.c 232317 2012-02-29 21:38:31Z trociny $"); |
37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bio.h> 41#include <sys/buf.h> 42#include <sys/conf.h> 43#include <sys/event.h> 44#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 118 .vop_putpages = vop_stdputpages, 119 .vop_readlink = VOP_EINVAL, 120 .vop_rename = vop_norename, 121 .vop_revoke = VOP_PANIC, 122 .vop_strategy = vop_nostrategy, 123 .vop_unlock = vop_stdunlock, 124 .vop_vptocnp = vop_stdvptocnp, 125 .vop_vptofh = vop_stdvptofh, | 37 38#include <sys/param.h> 39#include <sys/systm.h> 40#include <sys/bio.h> 41#include <sys/buf.h> 42#include <sys/conf.h> 43#include <sys/event.h> 44#include <sys/kernel.h> --- 73 unchanged lines hidden (view full) --- 118 .vop_putpages = vop_stdputpages, 119 .vop_readlink = VOP_EINVAL, 120 .vop_rename = vop_norename, 121 .vop_revoke = VOP_PANIC, 122 .vop_strategy = vop_nostrategy, 123 .vop_unlock = vop_stdunlock, 124 .vop_vptocnp = vop_stdvptocnp, 125 .vop_vptofh = vop_stdvptofh, |
126 .vop_unp_bind = vop_stdunp_bind, 127 .vop_unp_connect = vop_stdunp_connect, 128 .vop_unp_detach = vop_stdunp_detach, |
|
126}; 127 128/* 129 * Series of placeholder functions for various error returns for 130 * VOPs. 131 */ 132 133int --- 898 unchanged lines hidden (view full) --- 1032 break; 1033 default: 1034 error = EINVAL; 1035 break; 1036 } 1037 return (error); 1038} 1039 | 129}; 130 131/* 132 * Series of placeholder functions for various error returns for 133 * VOPs. 134 */ 135 136int --- 898 unchanged lines hidden (view full) --- 1035 break; 1036 default: 1037 error = EINVAL; 1038 break; 1039 } 1040 return (error); 1041} 1042 |
1043int 1044vop_stdunp_bind(struct vop_unp_bind_args *ap) 1045{ 1046 1047 ap->a_vp->v_socket = ap->a_socket; 1048 return (0); 1049} 1050 1051int 1052vop_stdunp_connect(struct vop_unp_connect_args *ap) 1053{ 1054 1055 *ap->a_socket = ap->a_vp->v_socket; 1056 return (0); 1057} 1058 1059int 1060vop_stdunp_detach(struct vop_unp_detach_args *ap) 1061{ 1062 1063 ap->a_vp->v_socket = NULL; 1064 return (0); 1065} 1066 |
|
1040/* 1041 * vfs default ops 1042 * used to fill the vfs function table to get reasonable default return values. 1043 */ 1044int 1045vfs_stdroot (mp, flags, vpp) 1046 struct mount *mp; 1047 int flags; --- 140 unchanged lines hidden --- | 1067/* 1068 * vfs default ops 1069 * used to fill the vfs function table to get reasonable default return values. 1070 */ 1071int 1072vfs_stdroot (mp, flags, vpp) 1073 struct mount *mp; 1074 int flags; --- 140 unchanged lines hidden --- |