1
1
zrcadlo https://git.shadowkat.net/izaya/OC-PsychOS2.git synchronizováno 2024-09-20 19:06:32 -04:00

service/tape-iofs.lua

added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
Tento commit je obsažen v:
XeonSquared 2019-07-21 17:46:16 +10:00
rodič 8e3ee7bcb2
revize 77ceb65be6

8
service/tape-iofs.lua Normální soubor
Zobrazit soubor

@ -0,0 +1,8 @@
local counter = 0
for addr in component.list("tape_drive") do
iofs.register("tape"..tonumber(counter),function()
local tape = component.proxy(addr)
return tape.read, tape.write, function() end, tape.seek
end)
counter = counter + 1
end