#include <lunaix/device.h>
-#include <lunaix/mm/page.h>
+#include <lunaix/mm/pagetable.h>
static int
__null_wr_pg(struct device* dev, void* buf, size_t offset)
{
// do nothing
- return PG_SIZE;
+ return PAGE_SIZE;
}
static int
devnull->ops.read_page = __null_rd_pg;
devnull->ops.read = __null_rd;
- device_register(devnull, &def->class, "null");
+ register_device(devnull, &def->class, "null");
return 0;
}