uCfgVideoDepth db 32
uCfgVideoHeight dw 768
uCfgVideoWidth dw 1024
struc VFS
vfs_register
video_setup
struc Vmem
Adds a span [Address, Address + Size) to an arena.
vmem_add
Allocates n-bytes from arena.
vmem_alloc
VMEM_ALLOC = ( 1 shl )
Initialize static segments
vmem_bootstrap
Creates a new Vmem arena whose initial span is [Base, Base + Size).
vmem_create
Destroys an arena
vmem_destroy
vmem_dump
Free n-bytes at address to arena
vmem_free
VMEM_FREE = ( 1 shl 1 )
VMEM_FREELISTS_N = 4 * 8
macro VMEM_GET_LIST_FROM_SIZE reg, N
VMEM_HASHTABLE_N = 16
VMEM_MIN_RESERVE = 4
VMEM_SEGMENT_ALLOCATED = 0
VMEM_SEGMENT_FREE = 1
VMEM_SEGMENT_SPAN = 2
VMEM_SEGMENT_STATIC_SPAN = 3
Return information about arenas size
vmem_size
VMEM_STATIC_SEG_COUNT = 64
VMEM_VM_BESTFIT = ( 1 shl )
VMEM_VM_BOOTSTRAP = ( 1 shl 5 )
VMEM_VM_FIT_MASK = ( VMEM_VM_BESTFIT or VMEM_VM_INSTANTFIT )
VMEM_VM_INSTANTFIT = ( 1 shl 1 )
VMEM_VM_NOSLEEP = ( 1 shl 4 )
VMEM_VM_POPULATING = ( 1 shl 6 )
VMEM_VM_SLEEP = ( 1 shl 3 )
vmem_xalloc
Frees n-bytes at address.
vmem_xfree
struc VmemSegment
struc VNode
xv6 Filesystem block size (1024)
XV6FS_BSIZE = 1024
xv6FS directory entry
struc Xv6FS_Dirent
xv6FS on disk i-node
struc Xv6FS_Inode
Superblock magic number, MUST BE `0x10203040`
XV6FS_MAGIC = 0x10203040
Number of direct block (12)
XV6FS_NDIRECT = 12
root inode number
XV6FS_ROOTINO = 1
xv6FS superblock
struc Xv6FS_Sb
zetas: