Xref: utzoo comp.os.minix:14688 comp.sys.mac.comm:2547 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!elroy.jpl.nasa.gov!sdd.hp.com!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!ux1.cso.uiuc.edu!resnick From: resnick@cogsci.uiuc.edu (Pete Resnick) Newsgroups: comp.os.minix,comp.sys.mac.comm Subject: Re: comms problem, error code=-17 Message-ID: <1991Feb17.233552.20396@ux1.cso.uiuc.edu> Date: 17 Feb 91 23:35:52 GMT References: <1991Feb15.124615.15460@ukpoit.co.uk> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 28 paul@ukpoit.co.uk (Paul Wood) writes: >What does -17 indicate? All I can find in the documentation is "control error"! >MacMinix gets this problem after a PBControl call, as follows: >if((err = PBControl(&pb, 0)) != 0) > printf("error %d setting line parameters on serial line %d\n",err,rs->minor); Device Drivers 101. PBControl sends a block of memory (pb in this case) to the device driver in question. In this block of memory (called, suprisingly enough, a control block) is a field called csCode, which tells the driver what action it is supposed to perform on this block of memory. csCode is a word at byte offset 26. The error -17 indicates that the driver does not recognize the csCode being set to it. More often than not, that means that whatever is calling this device driver (MacMinix in this case) is depending on a different version of the device driver (I assume the serial driver in this case) than the one that actually exists. You might want to see what the value of csCode is and check it against the codes that the serial driver expects to see. You may find that an old version of the driver didn't use a certain code, whereas a newer version does. pr -- Pete Resnick (...so what is a mojo, and why would one be rising?) Graduate assistant - Philosophy Department, Gregory Hall, UIUC System manager - Cognitive Science Group, Beckman Institute, UIUC Internet/ARPAnet/EDUnet : resnick@cogsci.uiuc.edu BITNET (if no other way) : FREE0285@UIUCVMD