Subject: drvctl -p returns ENOMEM
To: None <tech-kern@netbsd.org>
From: Juan RP <juan@xtrarom.org>
List: tech-kern
Date: 09/25/2006 23:36:18
Hi,

Thanks for your work on drvctl(8) to report the device properties
dictionary. I wanted to try it out with the wd driver (you added
properties for this one too) but does not seem to work:

[juan@nocturno][~]> sudo drvctl -p wd0
drvctl: DRVCTLCOMMAND: Cannot allocate memory
[juan@nocturno][~]>

I added a printf into drvctl_command() to see if the error was
creating the dictionary but it's not, so the problem might come
from prop_dictionary_copyin_ioctl() which returns error if there's
one.

Could you please take a look at it?

Thanks.