Lines Matching defs:cb
72 struct smsg_callback *cb;
95 list_for_each_entry(cb, &smsg_list, list)
96 if (strncmp(buffer + 8, cb->prefix, cb->len) == 0) {
97 cb->callback(sender, buffer + 8);
108 struct smsg_callback *cb;
110 cb = kmalloc(sizeof(struct smsg_callback), GFP_KERNEL);
111 if (!cb)
113 cb->prefix = prefix;
114 cb->len = strlen(prefix);
115 cb->callback = callback;
117 list_add_tail(&cb->list, &smsg_list);
126 struct smsg_callback *cb, *tmp;
129 cb = NULL;
133 cb = tmp;
134 list_del(&cb->list);
138 kfree(cb);