Date: Mon, 13 Sep 1999 20:07:53 +0100 From: Mark Ovens <mark@ukug.uk.freebsd.org> To: questions@freebsd.org Subject: Where's the source Luke? Message-ID: <19990913200752.A2529@marder-1>
next in thread | raw e-mail | index | archive | help
Can someone tell me where to find the source code for ioctl()? I've searched all the .c files under /usr/src/sys and have found plenty of functions called xxxx_ioctl, e.g. kbd_ioctl(), but not a plain ``ioctl()''. I'm beginning to think that a call to ioctl() gets mapped to some function specific to the device. The particular instance I'm interested in is in video_mode() in vidcontrol.c: if (*index < argc) { for (i = 0; modes[i].name != NULL; ++i) { if (!strcmp(argv[*index], modes[i].name)) { mode = modes[i].mode; break; } } if (modes[i].name == NULL) return; =====>> if (ioctl(0, mode, NULL) < 0) <<=============== warn("cannot set videomode"); Thanks. -- STATE-OF-THE-ART: Any computer you can't afford. OBSOLETE: Any computer you own. ________________________________________________________________ FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://ukug.uk.freebsd.org/~mark/ mailto:mark@ukug.uk.freebsd.org http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990913200752.A2529>