pintos/src/filesys/inode.h File Reference

#include <stdbool.h>
#include "filesys/off_t.h"
#include "devices/block.h"

Go to the source code of this file.

Functions

void inode_init (void)
bool inode_create (block_sector_t, off_t)
struct inodeinode_open (block_sector_t)
struct inodeinode_reopen (struct inode *)
block_sector_t inode_get_inumber (const struct inode *)
void inode_close (struct inode *)
void inode_remove (struct inode *)
off_t inode_read_at (struct inode *, void *, off_t size, off_t offset)
off_t inode_write_at (struct inode *, const void *, off_t size, off_t offset)
void inode_deny_write (struct inode *)
void inode_allow_write (struct inode *)
off_t inode_length (const struct inode *)


Function Documentation

void inode_allow_write ( struct inode  ) 

Definition at line 334 of file inode.c.

References ASSERT, inode::deny_write_cnt, and inode::open_cnt.

Referenced by file_allow_write().

void inode_close ( struct inode  ) 

bool inode_create ( block_sector_t  ,
off_t   
)

void inode_deny_write ( struct inode  ) 

Definition at line 324 of file inode.c.

References ASSERT, inode::deny_write_cnt, and inode::open_cnt.

Referenced by file_deny_write().

block_sector_t inode_get_inumber ( const struct inode  ) 

Definition at line 156 of file inode.c.

References inode::sector.

void inode_init ( void   ) 

Definition at line 63 of file inode.c.

References list_init(), and open_inodes.

Referenced by filesys_init().

off_t inode_length ( const struct inode  ) 

Definition at line 343 of file inode.c.

References inode::data, and inode_disk::length.

Referenced by file_length(), inode_read_at(), and inode_write_at().

struct inode* inode_open ( block_sector_t   )  [read]

off_t inode_read_at ( struct inode ,
void *  ,
off_t  size,
off_t  offset 
)

void inode_remove ( struct inode  ) 

Definition at line 192 of file inode.c.

References ASSERT, NULL, and inode::removed.

Referenced by dir_remove().

struct inode* inode_reopen ( struct inode  )  [read]

Definition at line 147 of file inode.c.

References NULL, and inode::open_cnt.

Referenced by dir_reopen(), file_reopen(), and inode_open().

off_t inode_write_at ( struct inode ,
const void *  ,
off_t  size,
off_t  offset 
)


Generated on Mon Jan 10 16:43:58 2011 for Pintos by  doxygen 1.5.6