bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implicit IN? (was: Interface for SCSI transactions ?)


From: Samuel Thibault
Subject: Re: Implicit IN? (was: Interface for SCSI transactions ?)
Date: Fri, 23 Sep 2011 17:34:53 +0200
User-agent: Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30)

olafBuddenhagen@gmx.net, le Fri 23 Sep 2011 03:26:21 +0200, a écrit :
> On Tue, Sep 13, 2011 at 08:54:09AM +0200, Samuel Thibault wrote:
> > olafBuddenhagen@gmx.net, le Mon 12 Sep 2011 20:15:36 +0200, a écrit :
> 
> > > > Why no "in" or "out" before parameter "device" ?
> > > 
> > > Well, I would have said that the first parameter is just special.
> > > (It's the port on which the RPC was invoked; basically it's only
> > > there to give it a name.) However, I just saw that device_open()
> > > also has other parameters without a direction...
> > 
> > These other parameters are integers or constant character arrays, so
> > they are implictly in.
> 
> Maybe I'm missing something, but I fail to see why integers or character
> arrays would by any more implicitly IN than other types?...

Because they can't be OUT.

> Perhaps IN is simply the default in general, and it's only explicitly
> specified in most interfaces for clearity? But that's pure speculation
> of course :-)

IIRC somebody said so earlier.

Samuel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]