Subversion Repositories HelenOS

Rev

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

Rev 4492 Rev 4508
Line 330... Line 330...
330
        return -1;
330
        return -1;
331
   
331
   
332
    return devmap_device_connect((dev_handle_t) device, 0);
332
    return devmap_device_connect((dev_handle_t) device, 0);
333
}
333
}
334
 
334
 
335
void fd_node(int fildes, fdi_node_t *node)
335
int fd_node(int fildes, fdi_node_t *node)
336
{
336
{
337
    futex_down(&vfs_phone_futex);
337
    futex_down(&vfs_phone_futex);
338
    async_serialize_start();
338
    async_serialize_start();
339
    vfs_connect();
339
    vfs_connect();
340
   
340
   
Line 349... Line 349...
349
   
349
   
350
    if (rc == EOK) {
350
    if (rc == EOK) {
351
        node->fs_handle = (fs_handle_t) fs_handle;
351
        node->fs_handle = (fs_handle_t) fs_handle;
352
        node->dev_handle = (dev_handle_t) dev_handle;
352
        node->dev_handle = (dev_handle_t) dev_handle;
353
        node->index = (fs_index_t) index;
353
        node->index = (fs_index_t) index;
354
    } else {
-
 
355
        node->fs_handle = 0;
-
 
356
        node->dev_handle = 0;
-
 
357
        node->index = 0;
-
 
358
    }
354
    }
-
 
355
   
-
 
356
    return rc;
359
}
357
}
360
 
358
 
361
int fsync(int fildes)
359
int fsync(int fildes)
362
{
360
{
363
    futex_down(&vfs_phone_futex);
361
    futex_down(&vfs_phone_futex);