PERFORCE change 128807 for review
Kip Macy
kmacy at FreeBSD.org
Wed Nov 7 22:58:47 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=128807
Change 128807 by kmacy at 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
More information about the p4-projects
mailing list