Re: Not exporting procps_cpu_count

Jim Warner <[email protected]> Wed, 21 Oct 2020 16:29:24 -0500
Newsgroups gmane.linux.procps.devel
Message-ID <[email protected]>
On 10/21/20 3:51 PM, Craig Small wrote:
> I'm currently finishing off the procps_misc (renamed to 
> procps_sysinfo because that actually has more meaning) man page.  I 
> noticed that one of the functions not documented was procps_cpu_count.

Hi Craig,

I think you should keep the procps_misc name since the procps.3 page 
already suggests that it represents 'system level information' (as 
opposed to procps_pids and 'process information').

> So, should this not just become an internal to the library function or 
> is there merit in exporting it?

Personally, I feel that procps_cpu_count should probably remain exported 
as it's a nice fit with procps_hertz_get (probably should be just 
procps_hertz).

Anyway, the only other means of getting a cpu count is via stat reap 
which is a rather expensive alternative.

Regards,

Jim

p.s. By the way, did you receive the following?  I've yet to receive the 
freelists echo.

    https://www.freelists.org/post/procps/keep-on-patchin,21