chunk.c (80445cfb28a6b093540582b68d9ae928bf34cfe7) chunk.c (e8c38751be84e2e930642be60331fbb6d3c4becb)
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2003, 2004
3 *
4 * This file is part of the SCTP kernel implementation
5 *
6 * This file contains the code relating the chunk abstraction.
7 *
8 * This SCTP implementation is free software;

--- 52 unchanged lines hidden (view full) ---

61 INIT_LIST_HEAD(&msg->chunks);
62}
63
64/* Allocate and initialize datamsg. */
65SCTP_STATIC struct sctp_datamsg *sctp_datamsg_new(gfp_t gfp)
66{
67 struct sctp_datamsg *msg;
68 msg = kmalloc(sizeof(struct sctp_datamsg), gfp);
1/* SCTP kernel implementation
2 * (C) Copyright IBM Corp. 2003, 2004
3 *
4 * This file is part of the SCTP kernel implementation
5 *
6 * This file contains the code relating the chunk abstraction.
7 *
8 * This SCTP implementation is free software;

--- 52 unchanged lines hidden (view full) ---

61 INIT_LIST_HEAD(&msg->chunks);
62}
63
64/* Allocate and initialize datamsg. */
65SCTP_STATIC struct sctp_datamsg *sctp_datamsg_new(gfp_t gfp)
66{
67 struct sctp_datamsg *msg;
68 msg = kmalloc(sizeof(struct sctp_datamsg), gfp);
69 if (msg)
69 if (msg) {
70 sctp_datamsg_init(msg);
70 sctp_datamsg_init(msg);
71 SCTP_DBG_OBJCNT_INC(datamsg);
71 SCTP_DBG_OBJCNT_INC(datamsg);
72 }
72 return msg;
73}
74
75/* Final destructruction of datamsg memory. */
76static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
77{
78 struct list_head *pos, *temp;
79 struct sctp_chunk *chunk;

--- 228 unchanged lines hidden ---
73 return msg;
74}
75
76/* Final destructruction of datamsg memory. */
77static void sctp_datamsg_destroy(struct sctp_datamsg *msg)
78{
79 struct list_head *pos, *temp;
80 struct sctp_chunk *chunk;

--- 228 unchanged lines hidden ---