Thread (12 messages) 12 messages, 3 authors, 2012-09-26

Re: [PATCH 02/11] inet_diag: pass inet_diag module to netlink_dump_start

From: Stephen Hemminger <hidden>
Date: 2012-09-26 16:07:48
Also in: linux-rdma, netdev, netfilter-devel

On Wed, 26 Sep 2012 12:52:11 +0800
Gao feng [off-list ref] wrote:
 			struct netlink_dump_control c = {
 				.dump = inet_diag_dump_compat,
+				.done = netlink_dump_done,
+				.module = THIS_MODULE,
 			};
Since these are immutable, why the netlink_dump_control structures
on the stack (which requires code to generate at runtime), and instead
make them global

static const struct netlink_dump_control unix_diag_ctrl = {
...
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help