Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!brl-adm!adm!Conley%csvax.cs.ukans.edu@RELAY.CS.NET From: Conley%csvax.cs.ukans.edu@RELAY.CS.NET Newsgroups: comp.unix.wizards Subject: copyin Message-ID: <4838@brl-adm.ARPA> Date: Tue, 10-Mar-87 04:10:13 EST Article-I.D.: brl-adm.4838 Posted: Tue Mar 10 04:10:13 1987 Date-Received: Tue, 10-Mar-87 20:22:40 EST Sender: news@brl-adm.ARPA Lines: 33 system: 780, 4.3 Well, a couple of us here have been mucking with a system call ( vhangup, although that's not terribly important ). So we've tweaked the sysent array, and added one of those mysterious struct a's to the code. Now, one parameter is a string, and we use uap->string just like any other string ( e.g. in a tprintf ). However, an associate insists that this cannot be done, i.e. the string exists in user space ( and this is kernel mode, hence kernel address space ). "Gotta do a copyin". Dispensing with what we do ( and don't! ) know about the u area, kernel stack, ( etc, etc ), how come our not doing this particular copyin doesn't provoke crash and burn mode? The code works, we can print the silly thing, yet it shouldn't work ( or should it? ). Would anyone care to shed some light on this? Thanks for your time and patience. Dennis Conley Computer Science Dept University of Kansas CSNET: conley@csvax.cs.ukans.edu conley@ukans.csnet ( previously ) BITNET: conley@ukanvax "Onward through the fog!"