OpenVZ Forum


Home » Mailing lists » Devel » [PATCH net-2.6.25] Name magic constants in sock_wake_async()
Re: [PATCH net-2.6.25] Name magic constants in sock_wake_async() [message #23769 is a reply to message #23725] Mon, 26 November 2007 12:06 Go to previous message
Herbert Xu is currently offline  Herbert Xu
Messages: 45
Registered: April 2007
Member
On Fri, Nov 23, 2007 at 04:43:11PM +0300, Pavel Emelyanov wrote:
> The sock_wake_async() performs a bit different actions 
> depending on "how" argument. Unfortunately this argument 
> ony has numerical magic values.
> 
> I propose to give names to their constants to help people 
> reading this function callers understand what's going on 
> without looking into this function all the time.
> 
> I suppose this is 2.6.25 material, but if it's not (or the
> naming seems poor/bad/awful), I can rework it against the 
> current net-2.6 tree.
> 
> Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

I like this but I admit I'm no good with names either :)

Patch applied to net-2.6.25.  Thanks Pavel!
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
 
Read Message
Read Message
Previous Topic: [PATCH 1/2] Don't forget to unlock uids_mutex on error paths
Next Topic: [PATCH net-2.6.25] Make macro to specify the ptype_base size
Goto Forum:
  


Current Time: Sun Aug 24 21:35:29 GMT 2025

Total time taken to generate the page: 0.05376 seconds