Hi team,
please look at following bug https://www.illumos.org/issues/3925\\ [http://www.gravatar.com/avatar/7c6f0dcb33969f4cdf1d3d190e55c449?rating=PG&size=50&default=]<https://www.illumos.org/issues/3925> Bug #3925: IP DCE does not scale - illumos gate - illumos.org<https://www.illumos.org/issues/3925> www.illumos.org >From the Joyent bug report and evaluation: The IP DCE is a cache of dce_t >structures (see usr/src/uts/common/inet/ip/ip_dce.c, specifically the >dce_lookup_and_add_v4 ... This is same problem we are facing ________________________________ From: Peter Tribble <[email protected]> Sent: Saturday, December 23, 2017 9:31:56 PM To: illumos-discuss Subject: Re: [discuss] getting acpi batteries and ac devices On Sat, Dec 23, 2017 at 11:00 AM, Alexander Pyhalov <[email protected]<mailto:[email protected]>> wrote: Hello. I'm trying to get a list of acpi batteries and ac devices on the notebook. I see them in /devices/pseudo: $ ls -ld /devices/pseudo/acpi_drv\@0* drwxr-xr-x 2 root sys 2 Dec 23 2014 /devices/pseudo/acpi_drv@0 crw-rw-rw- 1 root sys 3, 512 Dec 23 11:32 /devices/pseudo/acpi_drv@0:ac0 crw-rw-rw- 1 root sys 3, 256 Dec 23 11:32 /devices/pseudo/acpi_drv@0:battery0 crw-rw-rw- 1 root sys 3, 1280 Dec 23 11:34 /devices/pseudo/acpi_drv@0:hotkey But when I try to do it in C, I fail. The attached program shows only In acpi_drv /pseudo/acpi_drv@0 is_laptop=0 (no /dev/pseudo/acpi_drv@0:* as I would expected). What am I doing wrong? That I have no idea, but I get the same result. Basically it's not getting into the minor loop. However, di_minor_next() returns DI_MINOR_NIL on failure. The failure the code is looking for is when it hits the end of the node list, but if I print out errno then I see 48, which is ENOTSUP, which according to the man page means "Minor node information is not available in snapshot." Which begs the question, how to ensure the device snapshot contains minor node information? -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ illumos-discuss | Archives<https://illumos.topicbox.com/groups/discuss/discussions/T736693effb971e17-M9d554692a557381577485bbb> | Powered by Topicbox<https://topicbox.com> ------------------------------------------ illumos-discuss Archives: https://illumos.topicbox.com/groups/discuss/discussions/T736693effb971e17-M962c39b334ebf7f369aa1f51 Powered by Topicbox: https://topicbox.com
