source: mainline/contrib/arch/uspace/srv/fs/devfs/devfs_server.bp@ ea5f46d

lfn serial ticket/834-toolchain-update topic/msim-upgrade topic/simplify-dev-export
Last change on this file since ea5f46d was ea5f46d, checked in by Martin Decky <martin@…>, 16 years ago

hierarchical composition of components
(tmpfs, fat, devfs are logical subcomponents of vfs, kbd and fb are subcomponents of console, rd is subcomponent of bd)

  • Property mode set to 100644
File size: 1.1 KB
Line 
1[/uspace/lib/libc/fnc.devmap_get_phone] ;
2!ns.ipc_m_connect_me_to /* vfs */ ;
3[/uspace/lib/libfs/fnc.fs_register] ;
4(
5 ?fs.ipc_m_connect_me_to ;
6 (
7 ?fs.mounted {
8 ?fs.ipc_m_data_write /* mount options */
9 } +
10
11 ?fs.lookup {
12 tentative {
13 [/uspace/lib/libc/fnc.devmap_device_get_handle] ;
14 tentative {
15 [/uspace/lib/libc/fnc.devmap_device_connect]
16 }
17 }
18 } +
19
20 ?fs.open_node {
21 tentative {
22 [/uspace/lib/libc/fnc.devmap_device_connect]
23 }
24 } +
25
26 ?fs.read {
27 tentative {
28 ?fs.ipc_m_data_read /* payload */ {
29 !device.read {
30 !device.ipc_m_data_read /* forward */
31 }
32 } +
33 (
34 [/uspace/lib/libc/fnc.devmap_device_get_count] ;
35 [/uspace/lib/libc/fnc.devmap_device_get_devices]
36 )
37 }
38 } +
39
40 ?fs.write {
41 tentative {
42 ?fs.ipc_m_data_write /* payload */ {
43 !device.write {
44 !device.ipc_m_data_write /* forward */
45 }
46 }
47 }
48 } +
49
50 ?fs.stat {
51 ?fs.ipc_m_data_read /* struct data */
52 } +
53
54 ?fs.close {
55 !device.ipc_m_phone_hungup
56 } +
57
58 ?fs.mount +
59 ?fs.truncate +
60 ?fs.destroy +
61 ?fs.sync
62 )* ;
63 ?fs.ipc_m_phone_hungup
64)* ;
65!vfs.ipc_m_phone_hungup
Note: See TracBrowser for help on using the repository browser.