On Wed, Nov 13, 2002 at 05:16:09PM +0100, Henning Meier-Geinitz wrote:
> +static inline void
> +usb_scanner_inc_use(struct scn_usb_data *scn)
> +{
> + atomic_inc(&scn->users);
> +}
> +
> +static inline void
> +usb_scanner_dec_use(struct scn_usb_data *scn)
> +{
> + if (atomic_dec_and_test(&scn->users))
> + usb_scanner_free(scn);
> +}
Hm, I really don't like "yet another usage counter" in a driver, as 2.5
fixes a lot of this, but for 2.4, we don't have anything else to use...
:(
Brian, what do you think about this patch?
greg k-h
-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel