bug-hurd
[Top][All Lists]
Advanced

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

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


From: olafBuddenhagen
Subject: Implicit IN? (was: Interface for SCSI transactions ?)
Date: Fri, 23 Sep 2011 03:26:21 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hi,

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?...

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 :-)

(BTW, the same "mode" parameter is actually explicitly marked as IN in
the other device_ RPCs -- so I guess it's just some hiccup that it's
missing in device_open()...)

-antrik-



reply via email to

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