Re: list of mandatory hooks in file system module implementation

"AndrĂ© Braga" <[email protected]> Sun, 24 Aug 2008 16:15:16 -0300
Newsgroups gmane.os.openbeos.kernel.devel
Message-ID <[email protected]>
On Sun, Aug 24, 2008 at 16:08, Salvatore Benedetto <[email protected]> wrote:
> It wasn't as easy as I thought as some calls are in the form of
> status = FS_CALL();

#define FS_CALL(vnode, op, params...) \
    (vnode->ops->op) ? \
        vnode->ops->op(vnode->mount->volume, vnode,params) \
        : \
        (panic("FS_CALL is NULL for " #op "\n"), 0)

should do the trick, I guess.



Cheers,
A.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/