From owner-freebsd-hackers Sat Jun 1 9:35:33 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from web21104.mail.yahoo.com (web21104.mail.yahoo.com [216.136.227.106]) by hub.freebsd.org (Postfix) with SMTP id EEE7637B408 for ; Sat, 1 Jun 2002 09:35:28 -0700 (PDT) Message-ID: <20020601163528.28107.qmail@web21104.mail.yahoo.com> Received: from [62.254.0.5] by web21104.mail.yahoo.com via HTTP; Sat, 01 Jun 2002 09:35:28 PDT Date: Sat, 1 Jun 2002 09:35:28 -0700 (PDT) From: Hiten Pandya Reply-To: hiten@uk.FreeBSD.org Subject: GFP_NOFS alternative/information for FreeBSD Kernel Malloc To: freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi All. I was wondering if there is an alternative to the GFP_NOFS flag provided in Linux Kernel Malloc [kmalloc() & kfree()] for FreeBSD, or is there any info. I am missing? Linux calls the kmalloc() system call as: [ an extract from jfs_dtree.c (jfs4bsd) ] %%% ciKey.name = (wchar_t *) kmalloc((JFS_NAME_MAX + 1) * sizeof(wchar_t), GFP_NOFS); %%% As of now, I have changed this to just use M_WAITOK and malloc() call, but I was wondering if anyone can guide me on this GFP_NOFS alternative. Also, Alfred to told me on IRC to just #define M_NOFS 0 for now, and then worry about it later. TIA. Hiten hiten@uk.FreeBSD.org __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message