Subject: Re: drvctl -p returns ENOMEM
To: Juan RP <juan@xtrarom.org>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 09/26/2006 14:16:41
--kPvmKZRaHW6UEX9w
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 25, 2006 at 11:36:18PM +0200, Juan RP wrote:
>=20
> Hi,
>=20
> 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:
>=20
> [juan@nocturno][~]> sudo drvctl -p wd0
> drvctl: DRVCTLCOMMAND: Cannot allocate memory
> [juan@nocturno][~]>
>=20
> 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.
>=20
> Could you please take a look at it?

It just works for me on amd64.  I suspect a local change...

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--kPvmKZRaHW6UEX9w
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQEVAwUBRRkaKdgoQloHrPnoAQJIbwf+K3OaICdlCT8899advLx4TZKgGJzbuZxR
d0Yx7LYuFqyybztfVjmzAKXUFcTbpL/MhocqbCu1z39f3orWjI63YSu1VVYYEoDd
hHLUn+iF7zIHfSwfs6rsrm6g48NfmSEQQXc9SSq5x2h6nIw2xGTp3zxeg3tz3x9d
ehnsPIlv2xvJXQykb+X6KvFZkbHjzxK/gmalnxyVAgZBb3YFbRk/qc4gfT219fDY
Lkt2kZl8RHDJzDAaM2I8omqML6CRPHF5GUC3y6acmv+WvmHcIkGK+J4LE36bd2+z
/3NuQGtL9OYx/u7dfrdeyWkQ7aE4S9EKeA/f69p/Nl0L3YbERQ+gZg==
=H5lR
-----END PGP SIGNATURE-----

--kPvmKZRaHW6UEX9w--