Lines Matching refs:ioctl
59 which allows you to read and write. The other is an ioctl()
61 ioctl() interface is meant for C programs (i.e. the X server). The
101 ioctl() interface, so users won't have to do anything. If you use a
126 Reading MTRRs from a C program using ioctl()'s:
130 Source file for mtrr-show (example program to show MTRRs using ioctl()'s)
154 This program will use an ioctl() on /proc/mtrr to show the current MTRR
170 #include <sys/ioctl.h>
205 for (gentry.regnum = 0; ioctl (fd, MTRRIOC_GET_ENTRY, &gentry) == 0;
218 fprintf (stderr, "Error doing ioctl(2) on /dev/mtrr\t%s\n", ERRSTRING);
222 Creating MTRRs from a C programme using ioctl()'s:
226 Source file for mtrr-add (example programme to add an MTRRs using ioctl())
250 This programme will use an ioctl() on /proc/mtrr to add an entry. The first
267 #include <sys/ioctl.h>
318 if (ioctl (fd, MTRRIOC_ADD_ENTRY, &sentry) == -1)
320 fprintf (stderr, "Error doing ioctl(2) on /dev/mtrr\t%s\n", ERRSTRING);