summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2004-12-15 03:34:09 +0000
committerEric Anholt <anholt@freebsd.org>2004-12-15 03:34:09 +0000
commit3e65f52bda674bec43b807d50b41a537c9e93959 (patch)
tree9a2c70b676a821e888d223f967015098dcd1b612 /linux
parentaff0a2548561ecbe3411b57cd31f46cbb1b4f6b8 (diff)
Use SYSCTL_ADD_OID macro instead of calling function directly.
Submitted by: reffie@FreeBSD.org
Diffstat (limited to 'linux')
0 files changed, 0 insertions, 0 deletions
n class="hl com"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * Authors: * Eric Anholt <eric@anholt.net> * */ #include <limits.h> #include "drmtest.h" /** * Checks DRM_IOCTL_GET_STATS. * * I don't care too much about the actual contents, just that the kernel * doesn't crash. */ int main(int argc, char **argv) { 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; }