source:
mainline/contrib/arch/uspace/srv/fs/devfs/devfs.bp
Last change on this file was f1380b7, checked in by , 7 years ago | |
---|---|
|
|
File size: 979 bytes |
Rev | Line | |
---|---|---|
[cf7b3e0] | 1 | ( |
2 | ?ipc_m_connect_me_to ; | |
3 | ( | |
4 | ?mounted { | |
5 | ?ipc_m_data_write /* mount options */ | |
6 | } + | |
[f1380b7] | 7 | |
[cf7b3e0] | 8 | ?lookup { |
9 | tentative { | |
10 | [/uspace/lib/libc/fnc.devmap_device_get_handle] ; | |
11 | tentative { | |
12 | [/uspace/lib/libc/fnc.devmap_device_connect] | |
13 | } | |
14 | } | |
15 | } + | |
[f1380b7] | 16 | |
[cf7b3e0] | 17 | ?open_node { |
18 | tentative { | |
19 | [/uspace/lib/libc/fnc.devmap_device_connect] | |
20 | } | |
21 | } + | |
[f1380b7] | 22 | |
[cf7b3e0] | 23 | ?read { |
24 | tentative { | |
25 | ?ipc_m_data_read /* payload */ { | |
26 | !device.read { | |
27 | !device.ipc_m_data_read /* forward */ | |
28 | } | |
29 | } + | |
30 | ( | |
31 | [/uspace/lib/libc/fnc.devmap_device_get_count] ; | |
32 | [/uspace/lib/libc/fnc.devmap_device_get_devices] | |
33 | ) | |
34 | } | |
35 | } + | |
[f1380b7] | 36 | |
[cf7b3e0] | 37 | ?write { |
38 | tentative { | |
39 | ?ipc_m_data_write /* payload */ { | |
40 | !device.write { | |
41 | !device.ipc_m_data_write /* forward */ | |
42 | } | |
43 | } | |
44 | } | |
45 | } + | |
[f1380b7] | 46 | |
[cf7b3e0] | 47 | ?stat { |
48 | ?ipc_m_data_read /* struct data */ | |
49 | } + | |
[f1380b7] | 50 | |
[cf7b3e0] | 51 | ?close { |
52 | !device.ipc_m_phone_hungup | |
53 | } + | |
[f1380b7] | 54 | |
[cf7b3e0] | 55 | ?mount + |
56 | ?truncate + | |
57 | ?destroy + | |
58 | ?sync | |
59 | )* ; | |
60 | ?ipc_m_phone_hungup | |
61 | )* ; | |
62 | !vfs.ipc_m_phone_hungup |
Note:
See TracBrowser
for help on using the repository browser.