
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 12:26:49 up 6 days, 21:24, 1 user, load average: 0.72, 0.73, 0.62
16 lines
323 B
C
16 lines
323 B
C
#ifndef __RAMDISK_H__
|
|
#define __RAMDISK_H__
|
|
|
|
#include <common.h>
|
|
|
|
size_t ramdisk_read(void *buf, size_t offset, size_t len);
|
|
|
|
/* write `len` bytes starting from `buf` into the `offset` of ramdisk */
|
|
size_t ramdisk_write(const void *buf, size_t offset, size_t len);
|
|
|
|
void init_ramdisk();
|
|
|
|
size_t get_ramdisk_size();
|
|
|
|
#endif
|