search for: vmchannel_sk_list

Displaying 2 results from an estimated 2 matches for "vmchannel_sk_list".

2008 Dec 14
5
[PATCH] AF_VMCHANNEL address family for guest<->host communication.
..._find_channel_id(const char *name); + +static struct proto vmchannel_proto = { + .name = "AF_VMCHANNEL", + .owner = THIS_MODULE, + .obj_size = sizeof(struct vmchannel_sock), +}; + +static struct vmchannel_sock_list { + struct hlist_head head; + spinlock_t lock; +} vmchannel_sk_list = { + .lock = __SPIN_LOCK_UNLOCKED(vmchannel_sk_list.lock) +}; + +static void vmchannel_sock_link(struct vmchannel_sock_list *l, struct sock *sk) +{ + spin_lock_bh(&l->lock); + sk_add_node(sk, &l->head); + spin_unlock_bh(&l->lock); +} + +static void vmchannel_sock_unlink(struct...
2008 Dec 14
5
[PATCH] AF_VMCHANNEL address family for guest<->host communication.
..._find_channel_id(const char *name); + +static struct proto vmchannel_proto = { + .name = "AF_VMCHANNEL", + .owner = THIS_MODULE, + .obj_size = sizeof(struct vmchannel_sock), +}; + +static struct vmchannel_sock_list { + struct hlist_head head; + spinlock_t lock; +} vmchannel_sk_list = { + .lock = __SPIN_LOCK_UNLOCKED(vmchannel_sk_list.lock) +}; + +static void vmchannel_sock_link(struct vmchannel_sock_list *l, struct sock *sk) +{ + spin_lock_bh(&l->lock); + sk_add_node(sk, &l->head); + spin_unlock_bh(&l->lock); +} + +static void vmchannel_sock_unlink(struct...