Subject: DVACT_ACTIVATE/DVACT_DEACTIVATE: proper use of EOPNOTSUPP
To: None <firstname.lastname@example.org>
From: Blair Sadewitz <email@example.com>
Date: 09/24/2007 20:58:23
While reading the OpenBSD commit log for
sys/dev/pci/azalia.c, I noticed this:
In a drivers activate() entry point, if on
DVACT_DEACTIVATE it does something, then it MUST
return zero on DVACT_ACTIVATE, not EOPNOTSUPP;
this very popular bug has been cut and pasted a
lot of times...
Does NetBSD follow the same convention?