That's a bit nicer, that way you don't have to declare it twice, but
it's not a big deal either way (no style rule here :)
> Also, since external functions are going to be calling these functions
> via the structure's function pointers, I believe they can't be static.
> Although, maybe they can, as long as the timer_pit value isn't static.
> I'm not that much of a C guru, so I'm really sure.
No, they can be static, and they should, to keep the namespace a bit
cleaner. The pointer itself isn't static, and all references to the
function goes through it, so the functions do not need to be global.
> > Shouldn't these 3 lines be above the "/* fwd declarations */" line?
>
> They could be, but I'm not sure about the necessity. Is this a coding
> style sorta' thing, or a C properness sort of thing? Either way is fine,
> I just don't follow the logic.
Just a "keep all #includes at the top of the file" type of thing, unless
it's absolutely necessary.
Hope this helps,
greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/