/branches/fs/uspace/fs/fs.c |
---|
99,12 → 99,20 |
ipc_answer_fast(callid, FS_ECONNECT, 0, 0); |
else { |
ipc_answer_fast(callid, 0, (uintptr_t)fp->buffer, 0); |
fp = &fproc[new_consument]; |
fp = &fproc[new_consument]; |
fp->connected = TRUE; |
new_consument = FALSE; |
} |
continue; |
} |
if (fs_call == FS_DROP_CONSUMER) { |
fproc->connected = FALSE; |
fproc->buffer = NULL; |
ipc_answer_fast(callid, 0, 0, 0); |
continue; |
} |
if (check_con < 0) { |
ipc_answer_fast(callid, err_code, 0, 0); |
/branches/fs/uspace/fs/const.h |
---|
114,6 → 114,7 |
/* Filesystem supported operations. */ |
#define FS_NEW_CONSUMER (FIRST_USER_METHOD + 50) /* this is not file system system call */ |
#define FS_DROP_CONSUMER (FS_NEW_CONSUMER + 1) /* drops connected consument */ |
#define FS_BASE FIRST_USER_METHOD |
#define FS_NOSYS (0 + FS_BASE) |