Lines Matching refs:ioctl
35 which allows you to read and write. The other is an ioctl()
37 ioctl() interface is meant for C programs (i.e. the X server). The
77 ioctl() interface, so users won't have to do anything. If you use a
102 Reading MTRRs from a C program using ioctl()'s:
106 Source file for mtrr-show (example program to show MTRRs using ioctl()'s)
130 This program will use an ioctl() on /proc/mtrr to show the current MTRR
146 #include <sys/ioctl.h>
181 for (gentry.regnum = 0; ioctl (fd, MTRRIOC_GET_ENTRY, &gentry) == 0;
194 fprintf (stderr, "Error doing ioctl(2) on /dev/mtrr\t%s\n", ERRSTRING);
198 Creating MTRRs from a C programme using ioctl()'s:
202 Source file for mtrr-add (example programme to add an MTRRs using ioctl())
226 This programme will use an ioctl() on /proc/mtrr to add an entry. The first
243 #include <sys/ioctl.h>
294 if (ioctl (fd, MTRRIOC_ADD_ENTRY, &sentry) == -1)
296 fprintf (stderr, "Error doing ioctl(2) on /dev/mtrr\t%s\n", ERRSTRING);