Bug 192221 - `flags` not documented for uma_zalloc* in uma(9)
Summary: `flags` not documented for uma_zalloc* in uma(9)
Status: Closed Not A Bug
Alias: None
Product: Documentation
Classification: Unclassified
Component: Books & Articles (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-doc (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-28 21:51 UTC by Enji Cooper
Modified: 2015-11-09 10:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 2014-07-28 21:51:01 UTC
uma_zalloc*'s flag argument is not documented. It seems that flags has the same meaning in uma_zalloc* as malloc(9) (M_WAITOK is being checked at least), but it would be nice if the manpage would explicitly state what values were valid and described their uses, or pointed to malloc(9).
Comment 1 Enji Cooper freebsd_committer freebsd_triage 2014-07-28 22:09:50 UTC
From uma.h:

 *      flags See sys/malloc.h for available flags.
Comment 2 Enji Cooper freebsd_committer freebsd_triage 2015-11-09 10:07:34 UTC
Looked at the manpage, and the blurb about uma_zalloc is a bit obfuscated, but it says this:

     To allocate an item from a zone, simply call uma_zalloc() with a pointer
     to that zone and set the flags argument to selected flags as documented
     in malloc(9).