Ask HN: A kernel module that adds a syscall
eg:
int fd = my_custom_syscall_like_functionality_related_to_my_hardware(FLAG_X | FLAG_Y);
int rc = read(fd, ...);
rc = write(fd, ...);
close(fd)
Does this or something similar already exists? I can write kernel modules that add devices and stuff for connected hardware but I only recently learned how to do that so I dont know what I dont know.