paul@181 | 1 | #include <systypes/base.h> /* flags_t, object_flags_t, offset_t */ |
paul@181 | 2 | |
paul@181 | 3 | /* An interface providing a way of opening filesystem objects relying on a |
paul@181 | 4 | dataspace to transfer filesystem paths. */ |
paul@181 | 5 | |
paul@181 | 6 | interface OpenerContext |
paul@181 | 7 | { |
paul@181 | 8 | /* Mount the filesystem reference given a mountpoint path written to the |
paul@181 | 9 | dataspace. */ |
paul@181 | 10 | |
paul@181 | 11 | [opcode(0)] void mount(in cap fs); |
paul@181 | 12 | |
paul@181 | 13 | /* Obtain a filesystem reference. */ |
paul@181 | 14 | |
paul@181 | 15 | [opcode(1)] void getfs(out cap fs); |
paul@181 | 16 | |
paul@181 | 17 | /* Obtain a file reference given a path written to the context's dataspace. */ |
paul@181 | 18 | |
paul@181 | 19 | [opcode(12)] void open(in flags_t flags, out offset_t size, out cap file, |
paul@181 | 20 | out object_flags_t object_flags); |
paul@181 | 21 | }; |
paul@181 | 22 | |
paul@181 | 23 | /* vim: tabstop=2 expandtab shiftwidth=2 |
paul@181 | 24 | */ |