Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Jun 2002 09:35:28 -0700 (PDT)
From:      Hiten Pandya <hitmaster2k@yahoo.com>
To:        freebsd-hackers@FreeBSD.org
Subject:   GFP_NOFS alternative/information for FreeBSD Kernel Malloc
Message-ID:  <20020601163528.28107.qmail@web21104.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020601163528.28107.qmail>