Subject: Re: IOCTL implementation and kernel/userland addresses
To: Frank van der Linden <fvdl@netbsd.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: tech-kern
Date: 02/17/2005 00:26:36
--NzB8fVQJ5HfG6fxh
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Wed, Feb 16, 2005 at 11:37:56PM +0100, Frank van der Linden wrote:
> On Wed, Feb 16, 2005 at 11:25:39PM +0100, Reinoud Zandijk wrote:
> > diff -u -r1.29 fcntl.h
> > --- sys/fcntl.h 3 Feb 2005 19:20:01 -0000 1.29
> > +++ sys/fcntl.h 16 Feb 2005 22:21:31 -0000
> > @@ -124,11 +124,12 @@
> > #define FMARK 0x00001000 /* mark during gc() */
> > #define FDEFER 0x00002000 /* defer for next gc pass */
> > #define FHASLOCK 0x00004000 /* descriptor holds advisory lock */
> > +#define FKIOCTL 0x80000000
> > /* bits to save after open(2) */
> > #define FMASK
> > (FREAD|FWRITE|FAPPEND|FASYNC|FFSYNC|FNONBLOCK|FDSYNC|\
> > - FRSYNC|FALTIO)
> > + FRSYNC|FALTIO|FKIOCTL)
> > /* bits settable by fcntl(F_SETFL, ...) */
> So, just add the value for FKIOCTL, and you're done there.
I'll only add that flag then :)
still remains the point of defining a COPYOUT() and friends macro's ? or a
function?
--NzB8fVQJ5HfG6fxh
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)
iQEVAwUBQhPWpYKcNwBDyKpoAQK9iAgAkh3V8TQKcKtzhK8wLcbnY+2iy4icCBNC
SnmU8lKT3yV+jyid83NJhf72d2Tja6v1lsBFoBI1IDokMg0j88DqCKhL8us0hDXh
YfaWvtj99NYGWzqbvBetTu5gwY7Z7P2oaWi0Zxoyowv+MDhlRoVzQkMyTNNcdjwV
o4lAFHCqyE9jo3RQrrXUk+OpO7iEDZGko2/QqhEtJIgpt+RGlcqHsFWh/EndCUPd
xzymt/BjVASJIra93UhwjcQA8lRME/bI2kk7hf1nKvYMCEB+y10nzoc7mjis+EGV
+GexbHhhQk+6IAE7gSb7mxfdI+ZzYbXHAKHIHpEK4n8yKnDjq2aR/g==
=sBJG
-----END PGP SIGNATURE-----
--NzB8fVQJ5HfG6fxh--