0

From fuse/examples/fsel.c

static struct fuse_operations fsel_oper = {
    .getattr    = fsel_getattr,
    .readdir    = fsel_readdir,
    .open       = fsel_open,
    .release    = fsel_release,
    .read       = fsel_read,
    .poll       = fsel_poll,
};

this is the definitionof fuse_operations

struct fuse_operations_compat25 {
    int (*getattr) (const char *, struct stat *);
    int (*readlink) (const char *, char *, size_t);
    int (*getdir) (const char *, fuse_dirh_t, fuse_dirfil_t);
    int (*mknod) (const char *, mode_t, dev_t);
    int (*mkdir) (const char *, mode_t);
    int (*unlink) (const char *);
    int (*rmdir) (const char *);
    .....
};

so what do those . mean? It's the first time I see that

4

1 回答 1

1

这意味着以 命名的字段.将具有该值。

例如,gettr函数指针将指向fsel_getattr函数。

于 2013-05-20T17:04:05.113 回答