freebsd-nq/sys/netncp
Bosko Milekic fffd12bd72 Implement m_getm() which will perform an "all or nothing" mbuf + cluster
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
2001-02-14 05:13:04 +00:00
..
ncp_cfg.h
ncp_conn.c Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
ncp_conn.h
ncp_crypt.c
ncp_file.h
ncp_lib.h Common option '-N' do not require an argument. 2001-01-07 07:03:59 +00:00
ncp_login.c
ncp_mod.c
ncp_ncp.c
ncp_ncp.h
ncp_nls.c
ncp_nls.h
ncp_rcfile.h
ncp_rq.c Implement m_getm() which will perform an "all or nothing" mbuf + cluster 2001-02-14 05:13:04 +00:00
ncp_rq.h
ncp_sock.c * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT. 2000-12-21 21:44:31 +00:00
ncp_sock.h
ncp_subr.c Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
ncp_subr.h
ncp_user.h
ncp.h
nwerror.h