Date: Thu, 8 Nov 2007 06:58:45 GMT From: Kip Macy <kmacy@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 128807 for review Message-ID: <200711080658.lA86wjxH000144@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=128807 Change 128807 by kmacy@kmacy:storage:toestack on 2007/11/08 06:58:06 add toepcb_alloc Affected files ... .. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#9 edit Differences ... ==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#9 (text+ko) ==== @@ -132,11 +132,27 @@ mtx_lock(&td->deferq.lock); } +struct toepcb * +toepcb_alloc(struct tcpcb *tp) +{ + struct toepcb *toep; + + toep = malloc(sizeof(struct toepcb), M_DEVBUF, M_NOWAIT); + + if (toep == NULL) + return (NULL); + + toep->tp_tp = tp; + tp->t_toe = toep; + + toepcb_init(toep); + toepcb_hold(toep); +} + void toepcb_init(struct toepcb *toep) { bzero(toep, sizeof(*toep)); - } void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711080658.lA86wjxH000144>