Re: DiskDevice API v2.1

"Axel Dörfler" <[email protected]>
Newsgroups gmane.os.openbeos.storage
Message-ID <1530489419-BeMail@nichtsnutz>
Tyler Dauwalder <tyler-cyCl/[email protected]> wrote:
> > Yes, the caller would have to make sure, that the parameters are 
> > valid.
> Doesn't it seem like it would be clearer and less error prone just to 
> have a specific function per operation=3F Yes, that means more 
> functions, 
> but IMHO that's a reasonable tradeoff for better typechecking and 
> greater ease of implementation.

It depends on where this generic function would be. From userland, we 
could have 20 functions that will all create the parameter set for this 
one generic function, which is a syscall.
The underlying FS could also have this one generic function. Having 
only one generic function (or a small set of functions) would make the 
FS API easier.

Adios...
   Axel.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.