Tuesday, September 11, 2007

as_hole()

Who in there sane mind would coin such a name for a function. Came across this function used by Kernel to find an "hole" in the process address space so that it could map a segment on to that hole. Well, though the name of the function does suggest it's behavior it's funny to see such a name being defined. Well imagine a case where the function fails and throws an error message
"as_hole failed".. Well now its renamed to as_gap().

No comments: