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.

More fun with linux kernel programming

Steel AngelSteel Angel Registered User regular
edited March 2008 in Help / Advice Forum
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.

Big Dookie wrote: »
I found that tilting it doesn't work very well, and once I started jerking it, I got much better results.

Steam Profile
3DS: 3454-0268-5595 Battle.net: SteelAngel#1772
Steel Angel on
Sign In or Register to comment.