tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GPIO revisited

Arnaud Lacombe <> wrote:
> On Sat, Jul 25, 2009 at 6:53 AM, Marc Balmer<> wrote:
> > While it certainly can make sense to declare functions static in some
> > userland programs for the sole reason to include a command in a crunched
> > binary, it does not make sense in kernel code; much to the contrary, it
> > makes debugging harder.
> >
> I see at least a few advantages of static function: they enforce
> interface definition, <...>

Exactly, in addition to what you, Christos and David said - it can be used
to clarify abstraction (separate public and private parts of interface).

It is slightly disappointing to hear such Marc's comment.


Home | Main Index | Thread Index | Old Index