Re: device_read example

2005-09-19 Thread Shakthi Kannan
Hi Neal, --- "Neal H. Walfield" <[EMAIL PROTECTED]> wrote: > My impression is that the fourth argument to > device_open is a send > right to the device... ... of type device_t. > ... which is supplied as the first argument to > device_read et al. of type device_t. I checked include/device/devic

Re: device_read example

2005-09-18 Thread Neal H. Walfield
At Sun, 18 Sep 2005 03:04:15 -0700 (PDT), Shakthi Kannan wrote: > I have a simple test function on GNU Hurd that > > 1. gets_privileged_ports from device_t > > error_t err; > device_t device_master; > err = get_privileged_ports (0, &device_master); > > 2. calls device_open > > err = d

device_read example

2005-09-18 Thread Shakthi Kannan
Greetings! I am trying a simple device_read operation from GNU Hurd to gnumach-1-branch. In gnumach-1-branch/i386/i386at/lpr.c, I have: lpropen(dev, flag, ior) int dev; int flag; #ifdef MACH_KERNEL io_req_t ior; #endif MACH_KERNEL { printf("lpr.c: lpropen()...\n"); return; } lprread(dev,