使用 JavaScript能使本网站更好的工作。
首页
探索
lain.church
帮助
注册
登录
izaya
/
OC-PsychOS2
镜像自地址
https://git.shadowkat.net/izaya/OC-PsychOS2.git
关注
1
点赞
1
派生
0
代码
工单
0
版本发布
0
百科
动态
浏览代码
service/tape-iofs.lua
added a service to make an iofs node for each tape drive attached to the system, as /iofs/tapeN
pull/1/head
XeonSquared
4 年前
父节点
8e3ee7bcb2
当前提交
77ceb65be6
共有
1 个文件被更改
,包括
8 次插入
和
0 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+8
-0
service/tape-iofs.lua
+ 8
- 0
service/tape-iofs.lua
查看文件
@@ -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
撰写
预览
正在加载...
取消
保存