3233169f25733d7e54cebc4bd8a8be86440c1ee5
reading from block devices is done using the block cache (bcache). This cache stores sectors from a block device in pages of memory marked as 'cached', which will allow them to be reclaimed when memory pressure is high (TODO). while block device drivers implement callbacks allowing reading/writing at block-granularity, the device subsystem uses the block cache to implement reading/writing at byte-granularity in a driver-agnostic way. block drivers can disable the block cache for their devices, but this will require that any clients communicate with the devices at block-granularity. also added an offset parameter to device and object read/write functions/callbacks.
Socks ===== It's a kernel!
Description
Languages
C
91.2%
Python
4%
Assembly
3.6%
CMake
0.8%
Shell
0.3%
Other
0.1%