Go to the documentation of this file.
7 #include <linux/module.h>
8 #include <linux/netdevice.h>
16 #define OZ_ELT_INFO_MAGIC_USED 0x35791057
17 #define OZ_ELT_INFO_MAGIC_FREE 0x78940102
39 for (i = 0; i < 2; i++) {
68 spin_lock_bh(&buf->
lock);
73 spin_unlock_bh(&buf->
lock);
75 oz_trace(
"oz_elt_info_alloc: ei with bad magic: 0x%x\n",
79 spin_unlock_bh(&buf->
lock);
89 INIT_LIST_HEAD(&ei->
link);
107 oz_trace(
"oz_elt_info_free: bad magic ei: %p"
120 spin_lock_bh(&buf->
lock);
127 spin_unlock_bh(&buf->
lock);
135 oz_trace(
"oz_elt_stream_create(0x%x)\n",
id);
144 spin_lock_bh(&buf->
lock);
146 spin_unlock_bh(&buf->
lock);
155 oz_trace(
"oz_elt_stream_delete(0x%x)\n",
id);
156 spin_lock_bh(&buf->
lock);
167 spin_unlock_bh(&buf->
lock);
175 list_del_init(&ei->
link);
184 spin_unlock_bh(&buf->
lock);
255 list_del_init(&ei2->
link);
275 spin_lock_bh(&buf->
lock);
285 if ((*len + ei->
length) <= max_len) {
297 "Stream down: %d %d\n",
309 spin_unlock_bh(&buf->
lock);
324 spin_lock_bh(&buf->
lock);
332 spin_unlock_bh(&buf->
lock);