subr_ndis.c (179720) | subr_ndis.c (182371) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Bill Paul <wpaul@windriver.com>. 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 --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ndis.c 179720 2008-06-11 07:55:07Z weongyo $"); | 34__FBSDID("$FreeBSD: head/sys/compat/ndis/subr_ndis.c 182371 2008-08-28 15:23:18Z attilio $"); |
35 36/* 37 * This file implements a translation layer between the BSD networking 38 * infrasturcture and Windows(R) NDIS network driver modules. A Windows 39 * NDIS driver calls into several functions in the NDIS.SYS Windows 40 * kernel module and exports a table of functions designed to be called 41 * by the NDIS subsystem. Using the PE loader, we can patch our own 42 * versions of the NDIS routines into a given Windows driver module and --- 2925 unchanged lines hidden (view full) --- 2968 } 2969 vfslocked = NDHASGIANT(&nd); 2970 2971 ExFreePool(path); 2972 2973 NDFREE(&nd, NDF_ONLY_PNBUF); 2974 2975 /* Get the file size. */ | 35 36/* 37 * This file implements a translation layer between the BSD networking 38 * infrasturcture and Windows(R) NDIS network driver modules. A Windows 39 * NDIS driver calls into several functions in the NDIS.SYS Windows 40 * kernel module and exports a table of functions designed to be called 41 * by the NDIS subsystem. Using the PE loader, we can patch our own 42 * versions of the NDIS routines into a given Windows driver module and --- 2925 unchanged lines hidden (view full) --- 2968 } 2969 vfslocked = NDHASGIANT(&nd); 2970 2971 ExFreePool(path); 2972 2973 NDFREE(&nd, NDF_ONLY_PNBUF); 2974 2975 /* Get the file size. */ |
2976 VOP_GETATTR(nd.ni_vp, vap, td->td_ucred, td); | 2976 VOP_GETATTR(nd.ni_vp, vap, td->td_ucred); |
2977 VOP_UNLOCK(nd.ni_vp, 0); 2978 VFS_UNLOCK_GIANT(vfslocked); 2979 2980 fh->nf_vp = nd.ni_vp; 2981 fh->nf_map = NULL; 2982 fh->nf_type = NDIS_FH_TYPE_VFS; 2983 *filehandle = fh; 2984 *filelength = fh->nf_maplen = vap->va_size & 0xFFFFFFFF; --- 523 unchanged lines hidden --- | 2977 VOP_UNLOCK(nd.ni_vp, 0); 2978 VFS_UNLOCK_GIANT(vfslocked); 2979 2980 fh->nf_vp = nd.ni_vp; 2981 fh->nf_map = NULL; 2982 fh->nf_type = NDIS_FH_TYPE_VFS; 2983 *filehandle = fh; 2984 *filelength = fh->nf_maplen = vap->va_size & 0xFFFFFFFF; --- 523 unchanged lines hidden --- |