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