Subject: Re: CVS commit: src
To: Jason R Thorpe <>
From: Bill Studenmund <skippy@macro.Stanford.EDU>
List: source-changes
Date: 11/17/1998 14:37:56
On Tue, 17 Nov 1998, Jason R Thorpe wrote:

> Module Name:	src
> Committed By:	thorpej
> Date:		Tue Nov 17 20:44:03 UTC 1998
> Modified Files:
> 	src/sys/dev/pcmcia: if_ep_pcmcia.c if_mbe_pcmcia.c if_ne_pcmcia.c
> 	    if_sm_pcmcia.c
> Log Message:
> Add detach and activate entry points.  Mostly functional except for
> #ifdef notyet'd if_delref() and if_detach(), which will be fixed up
> when that code is committed.

The if_detach code exports two symbols, _HAS_IF_ADDREF and _HAS_IF_ALLOC,
which are intended to help do things like this in a portable way. The
former certainly should be protected by _HAS_IF_ADDREF. if_detach could be
protected by #ifdef _HAS_IF_ALLOC, or we could add _HAS_IF_DETACH. :-)

These exports are intended to help the same driver source work with and
w/o the ifnet and ifa refcounting.

Take care,