Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 2676 → Rev 2677

/trunk/uspace/srv/ns/ns.c
117,7 → 117,7
while (1) {
callid = ipc_wait_for_call(&call);
switch (IPC_GET_METHOD(call)) {
case IPC_M_AS_AREA_RECV:
case IPC_M_SHARE_IN:
switch (IPC_GET_ARG3(call)) {
case SERVICE_MEM_REALTIME:
get_as_area(callid, &call, "clock.faddr",
/trunk/uspace/srv/console/console.c
537,8 → 537,8
sizeof(keyfield_t) * fb_info.cols * fb_info.rows,
PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
if (!interbuffer) {
if (async_req_3_0(fb_info.phone, IPC_M_AS_AREA_SEND,
(ipcarg_t) interbuffer, 0, AS_AREA_READ) != 0) {
if (ipc_share_out_send(fb_info.phone, interbuffer,
AS_AREA_READ) != EOK) {
munmap(interbuffer,
sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
interbuffer = NULL;
/trunk/uspace/srv/console/gcons.c
325,8 → 325,7
rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
if (rc)
goto exit;
rc = async_req_3_0(fbphone, IPC_M_AS_AREA_SEND, (ipcarg_t) shm, 0,
PROTO_READ);
rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
if (rc)
goto drop;
/* Draw logo */
387,8 → 386,7
rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (ipcarg_t) shm);
if (rc)
goto exit;
rc = async_req_3_0(fbphone, IPC_M_AS_AREA_SEND, (ipcarg_t) shm, 0,
PROTO_READ);
rc = ipc_share_out_send(fbphone, shm, PROTO_READ);
if (rc)
goto drop;
 
/trunk/uspace/srv/rd/rd.c
103,14 → 103,14
/*
* Now we wait for the client to send us its communication as_area.
*/
callid = async_get_call(&call);
if (IPC_GET_METHOD(call) == IPC_M_AS_AREA_SEND) {
if (IPC_GET_ARG1(call) >= (ipcarg_t) BLOCK_SIZE) {
size_t size;
if (ipc_share_out_receive(&callid, &size, NULL)) {
if (size >= BLOCK_SIZE) {
/*
* The client sends an as_area that can absorb the whole
* block.
*/
ipc_answer_1(callid, EOK, (uintptr_t) fs_va);
(void) ipc_share_out_deliver(callid, fs_va);
} else {
/*
* The client offered as_area too small.
/trunk/uspace/srv/fb/fb.c
747,7 → 747,7
unsigned int x, y;
 
switch (IPC_GET_METHOD(*call)) {
case IPC_M_AS_AREA_SEND:
case IPC_M_SHARE_OUT:
/* We accept one area for data interchange */
if (IPC_GET_ARG1(*call) == shm_id) {
void *dest = as_get_mappable_page(IPC_GET_ARG2(*call));
/trunk/uspace/srv/fb/ega.c
208,7 → 208,7
client_connected = 0;
ipc_answer_0(callid, EOK);
return; /* Exit thread */
case IPC_M_AS_AREA_SEND:
case IPC_M_SHARE_OUT:
/* We accept one area for data interchange */
intersize = IPC_GET_ARG2(call);
if (intersize >= scr_width * scr_height *
/trunk/uspace/srv/vfs/vfs_register.c
270,8 → 270,8
/*
* The client will want us to send him the address space area with PLB.
*/
callid = async_get_call(&call);
if (IPC_GET_METHOD(call) != IPC_M_AS_AREA_RECV) {
 
if (!ipc_share_in_receive(&callid, &size)) {
dprintf("Unexpected call, method = %d\n", IPC_GET_METHOD(call));
list_remove(&fs_info->fs_link);
futex_up(&fs_head_futex);
285,7 → 285,6
/*
* We can only send the client address space area PLB_SIZE bytes long.
*/
size = IPC_GET_ARG2(call);
if (size != PLB_SIZE) {
dprintf("Client suggests wrong size of PFB, size = %d\n", size);
list_remove(&fs_info->fs_link);
300,8 → 299,8
/*
* Commit to read-only sharing the PLB with the client.
*/
ipc_answer_2(callid, EOK, (ipcarg_t) plb,
(ipcarg_t) (AS_AREA_READ | AS_AREA_CACHEABLE));
(void) ipc_share_in_deliver(callid, plb,
AS_AREA_READ | AS_AREA_CACHEABLE);
 
dprintf("Sharing PLB.\n");