mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-26 11:47:31 +00:00
fffd12bd72
allocation, as required. If m_getm() receives NULL as a first argument, then it allocates `len' (second argument) bytes worth of mbufs + clusters and returns the chain only if it was able to allocate everything. If the first argument is non-NULL, then it should be an existing mbuf chain (e.g. pre-allocated mbuf sitting on a ring, on some list, etc.) and so it will allocate `len' bytes worth of clusters and mbufs, as needed, and append them to the tail of the passed in chain, only if it was able to allocate everything requested. If allocation fails, only what was allocated by the routine will be freed, and NULL will be returned. Also, get rid of existing m_getm() in netncp code and replace calls to it to calls to this new generic code. Heavily Reviewed by: bp |
||
---|---|---|
.. | ||
ncp_cfg.h | ||
ncp_conn.c | ||
ncp_conn.h | ||
ncp_crypt.c | ||
ncp_file.h | ||
ncp_lib.h | ||
ncp_login.c | ||
ncp_mod.c | ||
ncp_ncp.c | ||
ncp_ncp.h | ||
ncp_nls.c | ||
ncp_nls.h | ||
ncp_rcfile.h | ||
ncp_rq.c | ||
ncp_rq.h | ||
ncp_sock.c | ||
ncp_sock.h | ||
ncp_subr.c | ||
ncp_subr.h | ||
ncp_user.h | ||
ncp.h | ||
nwerror.h |