[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20161205082607.GA18980@localhost.localdomain>
Date: Mon, 5 Dec 2016 09:26:07 +0100
From: Richard Cochran <richardcochran@...il.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Vivien Didelot <vivien.didelot@...oirfairelinux.com>,
David Miller <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH v1 net-next 1/5] net: dsa: mv88e6xxx: Reserved Management
frames to CPU
On Sun, Dec 04, 2016 at 09:22:34PM +0100, Andrew Lunn wrote:
> 3) We have a prefix for us humans to help us find the code. Now we
> have ops, i cannot simply do M-. and emacs will take me to the
> implementation. I have to search for it a bit. Having the hint g1_
> tells me to go look in global1.c. Having the hint g2_ tells me to go
> look in global2.c. Having the port_ tells me to go look in port.c.
> Having no prefix tells me the code is scattered around and grep is my
> friend.
>
> The prefix is just a hint where the function is in the source
> code. Nothing more.
Just chiming in here: Having a function interface with callback
functions is widely used pattern in the kernel, but adding little
prefixes is not. Sure, you have to look to find a particular instance
of a callback, but it isn't _that_ hard.
Thanks,
Richard
Powered by blists - more mailing lists