2006-02-23

Berkelian Rhapsody (Yes, I'm that Greywolf)

Berkelian Rhapsody
(based on Bohemian Rhapsody by Queen)


Is this in real time? Is this in memory?
Caught in a for(;;) loop, no escape from this subroutine...
open() your files, branch through the do{}while()s and see
I'm just the kernel, I need no libraries
Because you boot me up, load and go
Branch from high, store to low
Any way the thread flows
Doesn't really matter to me
To me.

unlink() just killed a file
Filled it's data up with NULLs, cleared the inode, closed the holes
vfork(), life had just begun
Then kill(0, SIGKILL) blew it all away
mmap(), ooooooh, didn't mean to make it die
if (the parent process doesn't fork again) {
carry on, carry on, as if nothing really matters;
}

Too late, init has died
Flush my buffers out from core, then reboot() and try once more
panic ("freeing free block"); I've got to crash
Got to enter kdb and see the truth
Init, ooooooooh (Any way the thread flows)
I've lost my tty
I wish my page hadn't been swapped out at all...

I see the signal trap vectors into core
Interrupt! Overrun! It will do a fandango
Data's skrogged like lightning, very very frightening me
Dennis Ritchie? Kenneth Thompson? Kirk McKusick? Eric Allman?
Someone help me! Robert Pike?
Oh, Kernighan (-an -an -an -an -an)

I'm just a quick hack, nobody uses me
He just makes sockets in his address family
Spare him a buffer in high memory

bind(); accept(); msg_send(); will it let me go?
munmap(); NO! It will not let you go (LET IT GO!)
munmap() just will not let you go (LET IT GO!)
munmap() just will not let you go (LET IT GO!)
Will not let you go (LET IT GO!)
Will not let you go
Will not let you go oh, oh, oh, oh
No, no, no, no, no, no, no!
kill(0, SIGKILL), exit(0); exit(0); let me go!
BSDi has a daemon set aside for me, for me, for meeeeeeeeeeeeee

So you think you can stomp on my stack space and text?
Skrog my image and data by calling exec()?
Ohh, page-d, can't do this to me page-d
Just gotta switch out, just context switch right out of here

Nothing really hashes, anyone can see
Every process thrashes, every disk drive crashes
On me

Any way the thread flows...

...by Greywolf, with posthumous apologies to Freddie Mercury.



I wrote this back in 1991/1992 after having seen Wayne's World and while still being a UNIX fanatical student (not a lot's changed). I ended up posting it shortly after Freddie Mercury's death.

I must say I'm rather flattered to see that this bit of parody has been mirrored on so many sites -- I got 10+ pages worth of hits when I went to search for it!

Maybe I'll come up with something else someday...

2 comments:

Bat said...

You make me proud ... I guess I really did teach you how to think...much more important than what to think--I'm sure you have come up with things I never thought of!
Nice Blog, James, and thanks for the link...I've been checking the old one and missing your insight.
Love and hugs, handsome!
Mom

In Recovery said...

Ah UNIX...I remember those days!