When to burn those bridges

Sam Leffler sam at errno.com
Fri Sep 12 08:17:09 PDT 2003


> yea, but that's a bit of a pathological case.  first, rl/re attach to
> a specific driver, and not override.  So maybe we could mandate that
> drivers that are generic and return negative return values should be
> constrained to only look at the plug and play info and are not allowed
> to look at resources.  owi/wi is the only pair that does this
> evilness.

Magic return values are evil; better to use longer-lasting state like flags 
associated with the driver.

	Sam



More information about the freebsd-arch mailing list