I'm trying to create a "mailbox" system call where processes can send messages to each other. I wanted to use some sort of shared memory so I can refer to a "mailbox" by its ID, but I can't call system calls from another system call right? Is there another way where I can "refer" to a particular "mailbox" by its ID? I was thinking of just using kmalloc
and creating an array of structs. Not looking for code, just general pointers as to how I should do this. Thank you!
EDIT: Don't think I clarified but the mailboxes have to be in kernel space