Update comment to prefer M_NOWAIT over M_DONTWAIT and
M_WAITOK over M_WAIT. MFC after: 1 week
This commit is contained in:
parent
2c3142c82c
commit
83cacd1674
@ -349,8 +349,8 @@ struct mbstat {
|
||||
* Flags specifying how an allocation should be made.
|
||||
*
|
||||
* The flag to use is as follows:
|
||||
* - M_DONTWAIT or M_NOWAIT from an interrupt handler to not block allocation.
|
||||
* - M_WAIT or M_WAITOK from wherever it is safe to block.
|
||||
* - M_NOWAIT (M_DONTWAIT) from an interrupt handler to not block allocation.
|
||||
* - M_WAITOK (M_WAIT) from wherever it is safe to block.
|
||||
*
|
||||
* M_DONTWAIT/M_NOWAIT means that we will not block the thread explicitly and
|
||||
* if we cannot allocate immediately we may return NULL, whereas
|
||||
|
Loading…
Reference in New Issue
Block a user