Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 19 Mar 2002 14:39:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 19 Mar 2002 14:39:42 -0500 Received: from [12.150.248.132] ([12.150.248.132]:63581 "EHLO dhcp-177.hsv.redhat.com") by vger.kernel.org with ESMTP id ; Tue, 19 Mar 2002 14:39:19 -0500 Date: Tue, 19 Mar 2002 13:38:06 -0600 From: Tommy Reynolds To: "chiranjeevi vaka" Cc: washer@us.ibm.com, linux-kernel@vger.kernel.org Subject: Re: using kmalloc Message-Id: <20020319133806.13a40872.reynolds@redhat.com> In-Reply-To: <20020319192644.9097.qmail@web21304.mail.yahoo.com> Organization: Red Hat Software, Inc. / Embedded Development X-Mailer: Sylpheed version 0.7.4cvs6 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: Nr)Jjr, spoke thus: > I am trying to get something around 600 to 1000 bytes > using kmalloc. This one is for some changes in TCP/IP > stack. I am trying to implement a new kernel data > structure in tcp layer. So can you suggest me what > functionality to use to come out of that hanging. Be sure to use "kmalloc( 1000, GFP_ATOMIC )" if you don't want to block waiting for the memory. Check for a NULL result, because you might not be able to get the memory. --0L9oqQy=.JzMs?+l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iEYEARECAAYFAjyXk6MACgkQWEn3bOOMcuq0ngCghCnT4MYOfg76KfITH40TACBU 19AAn3yb9/3JY9Hm06EU+h6ZUsq8uk3j =ysPu -----END PGP SIGNATURE----- --0L9oqQy=.JzMs?+l-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/