Back to index

libdrm  2.4.37
Functions
getstats.c File Reference
#include <limits.h>
#include "drmtest.h"

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 Checks DRM_IOCTL_GET_STATS.

Function Documentation

int main ( int  argc,
char **  argv 
)

Checks DRM_IOCTL_GET_STATS.

I don't care too much about the actual contents, just that the kernel doesn't crash.

Definition at line 37 of file getstats.c.

{
       int fd, ret;
       drm_stats_t stats;

       fd = drm_open_any();

       ret = ioctl(fd, DRM_IOCTL_GET_STATS, &stats);
       assert(ret == 0);

       assert(stats.count >= 0);

       close(fd);
       return 0;
}

Here is the call graph for this function: