[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1285886690.5137.28.camel@jlt3.sipsolutions.net>
Date: Fri, 01 Oct 2010 00:44:50 +0200
From: Johannes Berg <johannes@...solutions.net>
To: Julian Calaby <julian.calaby@...il.com>
Cc: netdev@...r.kernel.org, linux-wireless@...r.kernel.org,
tgraf@...g.ch
Subject: Re: [RFC 1/2] genetlink: introduce pre_doit/post_doit hooks
On Fri, 2010-10-01 at 08:41 +1000, Julian Calaby wrote:
> > d) include two private pointers in each info
> > struct passed between all these operations
> > including doit(). (It's two because I'll
> > need two in nl80211 -- can be extended.)
>
> Stupid question:
>
> Why not have a priv struct rather than an arbitrary array of two pointers?
It'd have to be dynamically allocated, and the "arbitrary" array of two
pointers can be on the stack.
johannes
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists