devfs: take cred struct in devfs_register

This commit is contained in:
Matheus
2024-08-24 21:51:55 -03:00
parent 357f5c65cf
commit 806fa3a333
12 changed files with 57 additions and 16 deletions
+1 -1
View File
@@ -244,7 +244,7 @@ void fb_init() {
char name[6];
snprintf(name, 6, "fb%d", i);
__assert(devfs_register(&ops, name, V_TYPE_CHDEV, DEV_MAJOR_FB, i, 0644) == 0);
__assert(devfs_register(&ops, name, V_TYPE_CHDEV, DEV_MAJOR_FB, i, 0666, NULL) == 0);
printf("%s: %dx%d %d bpp\n", name, fb->width, fb->height, fb->bpp);
}