Page 136 - slides.dvi
P. 136

•
            •
                                             •
                   •
   Unix
                                 –
                                       –
                                                                                                               I/O
   Case
            Block
                                 two
                                             Recall:
   Study—
                          Low-level
                   Character
            I/O
   I/O
                                 broad
                                       everything
                   I/O
                          stuff
                   is
   Subsystem
            simpler
                          gory
                   low
                                       accessed
            but
                                                                                                               Implementation
                                 categories:
                          and
                   rate
                                       via
                                                                Device Driver
                                                                             Cooked
                   but
                                                                          Character I/O
                                       the
                                 block
                          machine
                                       file
                                                                     Raw Character I/O
                                 and
                                                                Device Driver
            performance
                   complex
                                 char.
                   ⇒
                                       system.
            matters
                          dependent
                                                                                 Cache
                                                                                    Buffer
                                                                Device Driver
            ⇒
                   most
                          ⇒
                                                                                                Generic File System Layer
                                                                     Raw Block I/O
                                                                Device Driver
                   code
                          ignore.
                   in
            emphasis
                   the
                                                                                                   Kernel
                                                        Hardware
                                                              Kernel
                                                                                                       User
            on
            the



                   “cooked”
            buffer






            cache.
                   interface.


   132
   131   132   133   134   135   136   137   138   139   140   141