tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: May pool_cache_get() ever return NULL?



On Thu, 6 Oct 2011 09:50:18 +0200, J. Hannken-Illjes wrote:
A short question:  Given a pool initialized with

        pool = pool_cache_init(SIZE, 0, 0, 0, "desc",
            NULL, IPL_NONE, NULL, NULL, NULL);

will

        pool_cache_get(pool, PR_WAITOK)

ever return NULL?

I don't think so, unless you pass PR_LIMITFAIL and you hit pool's hard limit.

--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost


Home | Main Index | Thread Index | Old Index