Subversion Repositories HelenOS

Rev

Rev 2677 | Rev 3599 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2677 Rev 2678
Line 535... Line 535...
535
   
535
   
536
    interbuffer = mmap(NULL,
536
    interbuffer = mmap(NULL,
537
        sizeof(keyfield_t) * fb_info.cols * fb_info.rows,
537
        sizeof(keyfield_t) * fb_info.cols * fb_info.rows,
538
        PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
538
        PROTO_READ | PROTO_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, 0, 0);
539
    if (!interbuffer) {
539
    if (!interbuffer) {
540
        if (ipc_share_out_send(fb_info.phone, interbuffer,
540
        if (ipc_share_out_start(fb_info.phone, interbuffer,
541
            AS_AREA_READ) != EOK) {
541
            AS_AREA_READ) != EOK) {
542
            munmap(interbuffer,
542
            munmap(interbuffer,
543
                sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
543
                sizeof(keyfield_t) * fb_info.cols * fb_info.rows);
544
            interbuffer = NULL;
544
            interbuffer = NULL;
545
        }
545
        }