]> granicus.if.org Git - procps-ng/commit
library: improve/normalize an interface, <MEMINFO> api
authorJim Warner <james.warner@comcast.net>
Wed, 11 May 2016 17:00:00 +0000 (12:00 -0500)
committerCraig Small <csmall@enc.com.au>
Wed, 11 May 2016 21:51:10 +0000 (07:51 +1000)
commit407f1b71de3c4baed23d897b86ad316b64ad1ec9
treedf9331517c779895349b929ae8a85de0685febcb
parent5ec5002b0dd0c993c4e57a9158d9723d3975f2a4
library: improve/normalize an interface, <MEMINFO> api

This represents the refinement of this interface after
the <stat> API was redesigned. We now follow a pattern
of 'get' for single item retrieval & 'select' for when
multiple items are desired, with just 1 function call.

And again following the <stat> lead this interface now
provides for delta values encompassing most items. The
reason I went cuckoo nuts with those deltas is because
they are essentially free. At the cost of a little RAM
and just one memcpy there's no other price to be paid.

Signed-off-by: Jim Warner <james.warner@comcast.net>
proc/libprocps.sym
proc/meminfo.c
proc/meminfo.h