aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/msgb.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/include/openbsc/msgb.h')
-rw-r--r--openbsc/include/openbsc/msgb.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/msgb.h b/openbsc/include/openbsc/msgb.h
index 2c31d158..5ecac459 100644
--- a/openbsc/include/openbsc/msgb.h
+++ b/openbsc/include/openbsc/msgb.h
@@ -47,7 +47,7 @@ struct msgb {
unsigned char _data[0];
};
-extern struct msgb *msgb_alloc(u_int16_t size);
+extern struct msgb *msgb_alloc(u_int16_t size, const char *name);
extern void msgb_free(struct msgb *m);
extern void msgb_enqueue(struct llist_head *queue, struct msgb *msg);
extern struct msgb *msgb_dequeue(struct llist_head *queue);
@@ -100,9 +100,10 @@ static inline void msgb_reserve(struct msgb *msg, int len)
msg->tail += len;
}
-static inline struct msgb *msgb_alloc_headroom(int size, int headroom)
+static inline struct msgb *msgb_alloc_headroom(int size, int headroom,
+ const char *name)
{
- struct msgb *msg = msgb_alloc(size);
+ struct msgb *msg = msgb_alloc(size, name);
if (msg)
msgb_reserve(msg, headroom);
return msg;