home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / KERNEL-S / V1.2 / LINUX-1.2 / LINUX-1 / linux / fs / msdos / msbuffer.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-31  |  1.1 KB  |  35 lines

  1. /* buffer.c 13/12/94 20.19.10 */
  2. struct buffer_head *msdos_bread (struct super_block *sb, int block);
  3. struct buffer_head *msdos_getblk (struct super_block *sb, int block);
  4. void msdos_brelse (struct super_block *sb, struct buffer_head *bh);
  5. void msdos_mark_buffer_dirty (struct super_block *sb,
  6.      struct buffer_head *bh,
  7.      int dirty_val);
  8. void msdos_set_uptodate (struct super_block *sb,
  9.      struct buffer_head *bh,
  10.      int val);
  11. int msdos_is_uptodate (struct super_block *sb, struct buffer_head *bh);
  12. void msdos_ll_rw_block (struct super_block *sb, int opr,
  13.     int nbreq, struct buffer_head *bh[32]);
  14.  
  15. /* These macros exist to avoid modifying all the code */
  16. /* They should be removed one day I guess */
  17.  
  18. /* The versioning mechanism of the modules system define those macros */
  19. /* This remove some warnings */
  20. #ifdef brelse
  21.     #undef brelse
  22. #endif
  23. #ifdef bread
  24.     #undef bread
  25. #endif
  26. #ifdef getblk
  27.     #undef getblk
  28. #endif
  29.  
  30. #define brelse(b)                msdos_brelse(sb,b)
  31. #define bread(d,b,s)            msdos_bread(sb,b)
  32. #define getblk(d,b,s)            msdos_getblk(sb,b)
  33. #define mark_buffer_dirty(b,v)    msdos_mark_buffer_dirty(sb,b,v)
  34.  
  35.