mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-21 05:13:47 +00:00
lib/igt_aux: api documentation
I'm not really happy with the name of the igt_env_set function, I'll follow up with a patch to change it. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -51,6 +51,12 @@
|
||||
#include "drmtest.h"
|
||||
#include "igt_aux.h"
|
||||
|
||||
/**
|
||||
* intel_get_total_ram_mb:
|
||||
*
|
||||
* Returns:
|
||||
* The total amount of system RAM available in MB.
|
||||
*/
|
||||
uint64_t
|
||||
intel_get_total_ram_mb(void)
|
||||
{
|
||||
@@ -79,6 +85,12 @@ intel_get_total_ram_mb(void)
|
||||
return retval / (1024*1024);
|
||||
}
|
||||
|
||||
/**
|
||||
* intel_get_total_swap_mb:
|
||||
*
|
||||
* Returns:
|
||||
* The total amount of swap space available in MB.
|
||||
*/
|
||||
uint64_t
|
||||
intel_get_total_swap_mb(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user