Changeset 17fd1d4 in mainline for uspace/srv/fs/devfs/devfs.c


Ignore:
Timestamp:
2009-06-03T18:59:31Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c20aa06
Parents:
05b9912
Message:

devfs rewrite:

  • implement VFS_OPEN_NODE, VFS_DEVICE, VFS_SYNC, VFS_CLOSE
  • connect to underlying device during VFS_LOOKUP (if L_OPEN flag is used) and VFS_OPEN_NODE
  • disconnect from underlying device during VFS_CLOSE
  • forward VFS_READ, VFS_WRITE and VFS_SYNC to the underlying device
  • VFS_DEVICE: return underlying device handle
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/devfs/devfs.c

    r05b9912 r17fd1d4  
    2929/** @addtogroup fs
    3030 * @{
    31  */ 
     31 */
    3232
    3333/**
     
    7575                        devfs_lookup(callid, &call);
    7676                        break;
     77                case VFS_OPEN_NODE:
     78                        devfs_open_node(callid, &call);
     79                        break;
     80                case VFS_DEVICE:
     81                        devfs_device(callid, &call);
     82                        break;
    7783                case VFS_READ:
    7884                        devfs_read(callid, &call);
     
    8389                case VFS_TRUNCATE:
    8490                        devfs_truncate(callid, &call);
     91                        break;
     92                case VFS_CLOSE:
     93                        devfs_close(callid, &call);
     94                        break;
     95                case VFS_SYNC:
     96                        devfs_sync(callid, &call);
    8597                        break;
    8698                case VFS_DESTROY:
     
    123135}
    124136
    125 /** 
     137/**
    126138 * @}
    127139 */
Note: See TracChangeset for help on using the changeset viewer.