The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
Another really specialized programming question, woo.
So I'm trying to figure out exactly how to go about initializing a read/write semaphore used by a few system calls I've added. I've declared the thing in my implementation file with
struct rw_semaphore mysemaphore
but I've been told that I need to muck around with init so the kernel doesn't just give me a bunch of garbage on startup. I have no damn clue what is involved in doing this.
I've looked in the /init/main.c file and based on what I've read and seen I'm pretty sure I need to add a new function here, but I'm not sure what I need to actually set. The .h files I've looked at that define the structs use variable types I'm not familiar with and I'm really confused.