We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7cc807 commit 66fce3cCopy full SHA for 66fce3c
lunatik.h
@@ -28,6 +28,7 @@
28
struct lunatik_instance {
29
struct hlist_head states_table[LUNATIK_HASH_BUCKETS];
30
struct reply_buffer reply_buffer;
31
+ struct net namespace;
32
spinlock_t statestable_lock;
33
spinlock_t rfcnt_lock;
34
spinlock_t sendmessage_lock;
lunatik_core.c
@@ -205,6 +205,7 @@ static int __net_init lunatik_instancenew(struct net *net)
205
spin_lock_init(&(instance->rfcnt_lock));
206
hash_init(instance->states_table);
207
(instance->reply_buffer).status = RB_INIT;
208
+ instance->namespace = *net;
209
return 0;
210
}
211
0 commit comments