By Khusboo Breja (M.Sc 2013)
Algo | Chapter | Input | Output |
getblk(to get a block) | 3 | File System number | locked buffer that can now be used for block |
block number | |||
brelse(to release a block) | 3 | locked buffer | none |
bread(Agorithm to read a block) | 3 | file system block number | buffer containing data |
breada(Algorith to read a block ahead) | 3 | (1)file system block number containing for immediate read | buffer containing data for immediate read |
(2)file system block number for asynchronous read | |||
bwrite(to write a block) | 3 | buffer | none |
iget( for allocation of In-core Inodes | 4 | file system inode number | locked inode |
iput(to release an Inode) | 4 | pointer to in-core inode | none |
bmap(to convert byte offset to block number in file system) | 4 | (1)inode | (1)block number in file system |
(2)byte offset | (2)byte offset into block | ||
(3)bytes of I/O in block | |||
(4)read ahead block number | |||
namei(to convert path name to an Inode) | 4 | path name | locked inode |
ialloc( for assigning new Inodes) | 4 | file system | locked inode |
ifree( for freeing Inode) | 4 | file system inode number | none |
alloc( for allocating disk blocks) | 4 | file system number | buffer for new block |
No comments:
Post a Comment