FreeBSD/sys/compat/ndis/subr_ndis.c
/*
 * See if a single module contains the symbols for a specified file.
 */
See if a single module contains the symbols for a specified file.
See if a single module contains the symbols for a specified file .
static int
NdisCheckModule(linker_file_t lf, void *context)
{
	struct ndis_checkmodule *nc;
	caddr_t			kldstart, kldend;
	nc = (struct ndis_checkmodule *)context;
	if (ndis_find_sym(lf, nc->afilename, "_start", &kldstart))
		return (0);
	if (ndis_find_sym(lf, nc->afilename, "_end", &kldend))
		return (0);
	nc->fh->nf_vp = lf;
	nc->fh->nf_map = NULL;
	nc->fh->nf_type = NDIS_FH_TYPE_MODULE;
	nc->fh->nf_maplen = (kldend - kldstart) & 0xFFFFFFFF;
	return (1);
}
static int NdisCheckModule ( linker_file_t lf , void * context ) { struct ndis_checkmodule * nc ; caddr_t kldstart , kldend ; nc = ( struct ndis_checkmodule * ) context ; if ( ndis_find_sym ( lf , nc -> afilename , " " , & kldstart ) ) return ( 0 ) ; if ( ndis_find_sym ( lf , nc -> afilename , " " , & kldend ) ) return ( 0 ) ; nc -> fh -> nf_vp = lf ; nc -> fh -> nf_map = NULL ; nc -> fh -> nf_type = NDIS_FH_TYPE_MODULE ; nc -> fh -> nf_maplen = ( kldend - kldstart ) & 0xFFFFFFFF ; return ( 1 ) ; }
See if a single module contains the symbols for a specified file.
See if a single module contains the symbols for a specified file .