Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcnc!rti!dg_rtp!meissner From: meissner@dg_rtp.UUCP (Michael Meissner) Newsgroups: comp.unix.wizards Subject: Re: Why "u." and not "u->" ? (I'm reading Bach book) Message-ID: <1950@dg_rtp.UUCP> Date: Fri, 22-May-87 10:54:00 EDT Article-I.D.: dg_rtp.1950 Posted: Fri May 22 10:54:00 1987 Date-Received: Sat, 23-May-87 15:53:17 EDT References: <626@vixie.UUCP> <3568@spool.WISC.EDU> <500@rust.DEC.COM> <8047@utzoo.UUCP> Reply-To: meissner@dg_rtp.UUCP (Michael Meissner) Organization: Data General (Languages @ Research Triangle Park, NC.) Lines: 20 In article <8047@utzoo.UUCP> henry@utzoo.UUCP (Henry Spencer) writes: /* somebody else */ > > I worked on a system were kernel mode ran unmapped. We were unable to > > use u. and therefore had to solve some very difficult problems. We even > > considered copying u areas to a fixed location at every context switch. > > Don't laugh, it's been done. I'm told it works okay, if a bit slowly. Another way to work around this, would be to use the macro processor (cpp): struct ... *u_ptr; #define u (*u_ptr) When the kernel does a context swap, it mearly changes the pointer u_ptr to the new u area. -- Michael Meissner, Data General Uucp: ...mcnc!rti!dg_rtp!meissner It is 11pm, do you know what your sendmail and uucico are doing?