mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:27:35 +00:00
SystemServer+kcov-example: Make /dev/kcov0 available again
Apparently this device entry got lost while converting to DevTmpFS.
This commit is contained in:
parent
1100dd4a72
commit
253d62cb18
2 changed files with 5 additions and 1 deletions
|
@ -150,6 +150,10 @@ static void populate_devfs_block_devices()
|
|||
create_devfs_block_device(String::formatted("/dev/fb{}", minor_number), 0666, 29, minor_number);
|
||||
break;
|
||||
}
|
||||
case 30: {
|
||||
create_devfs_block_device(String::formatted("/dev/kcov{}", minor_number), 0666, 30, minor_number);
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
create_devfs_block_device(String::formatted("/dev/hd{}", offset_character_with_number('a', minor_number)), 0600, 3, minor_number);
|
||||
break;
|
||||
|
|
|
@ -18,7 +18,7 @@ int main(void)
|
|||
{
|
||||
constexpr size_t num_entries = 1024 * 100;
|
||||
|
||||
int fd = open("/dev/kcov", O_RDWR);
|
||||
int fd = open("/dev/kcov0", O_RDWR);
|
||||
if (fd == -1) {
|
||||
perror("open");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue