Quote:
In case you don't know about it, http://lxr.linux.no/+trees is great for finding type definitions, constants, functions, yadda yadda yadda in the kernel. It's usually faster than grepping.
Yeah it's an operating systems class, our professor hosted an even better and more complete thing like than on school webspace and I've been using that; I didn't link it because he didn't want us sharing it. I wouldn't have gotten anywhere without using it lol.
Quote:
You know the answer to that, right? I'm assuming that's just venting. There's a reason I try to avoid the kernel level stuff whenever humanly possible (programming that is, kinda can't avoid loading values and modules and whatnot). I've lost enough sanity over my lifetime.
Yeah, it just pisses me off that the standard for comments is no comments "because you should be able to easily tell whats happening by looking at the code" but there's 6 levels of function abstraction and defines to get through. At least @#%^ing say what the parameters are supposed to be. Sometimes I didn't know if I should be passing variable or &variable because it just said "addr" and we're dealing with defines of structs inside structs and sh*t.
After dealing with all this sh*t I'm probably going to stick with computer architecture, hardware is much less infuriating. Designing a basic 3-stage mock ps3 cell-lite pipeline processor in vhdl was so much easier than making a kernel module.
My assignment is pretty much complete by now (~90/100). He extended the deadline by 24 hours so it's due in a little less than 6. My sh*t successfully takes in a password/key, hashes it, and encrypts/decrypts a file. Only things left are figuring out how to get the file inode and parent direction dentry without filp_open so I can delete a file with vfs_unlink, figuring out why I'm reading and writing to files that I don't have permissions for (I'll probably have to error check against permissions in inode?), and figuring out how to properly set permissions when I create a new file. Oh and figuring out how to md5 hash in the user level. I find it funny that I know how to do it in kernel level but don't know how to do it in the user level yet.
Or I can leave it as is and study for my japanese final that's in 23 hours
Edited, Dec 10th 2012 6:36pm by Deadgye