working on api docs
This commit is contained in:
1 parent
56d8fb2016
commit
38d56ced19
43 files changed
+5669
-618
No files matched your search
@@ -0,0 +1,42 @@
|
||||
--#region loopdev
|
||||
|
||||
---@meta
|
||||
|
||||
--#region kernel
|
||||
---@class HyperionOS.kernel
|
||||
---@field vfs HyperionOS.types.LoopDeviceInfo
|
||||
|
||||
---@class LoopDeviceInfo
|
||||
---@field path string Original directory or image path
|
||||
---@field mode "bind"|"image" Loop device mode
|
||||
|
||||
---Attaches a loop device backed by a directory or filesystem image.
|
||||
---Requires root privileges.
|
||||
---@param path string Directory or .hfs image path
|
||||
---@param forceImage? boolean Force image mode instead of directory bind mode
|
||||
---@return string id Loop device ID
|
||||
function syscall.losetup(path, forceImage) end
|
||||
|
||||
---Detaches a loop device.
|
||||
---The device must be unmounted first.
|
||||
---Requires root privileges.
|
||||
---@param id string Loop device ID
|
||||
function syscall.lodetach(id) end
|
||||
|
||||
---Lists currently attached loop devices.
|
||||
---@return table<string, LoopDeviceInfo> devices
|
||||
function syscall.lolist() end
|
||||
|
||||
---Creates a BHFS binary filesystem image from a VFS directory.
|
||||
---Requires root privileges.
|
||||
---@param srcdir string Source directory
|
||||
---@return string image BHFS binary image data
|
||||
function syscall.loimgcreate(srcdir) end
|
||||
|
||||
---Writes a BHFS image string to a file.
|
||||
---Requires root privileges.
|
||||
---@param image string BHFS binary image data
|
||||
---@param dest string Destination file path
|
||||
function syscall.loimgwrite(image, dest) end
|
||||
|
||||
--#endregion loopdev
|
||||
Reference in new issue
Block a user