summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/iobuf.h
Commit message (Collapse)AuthorAgeFilesLines
* [build] Rename gPXE to iPXEMichael Brown2010-04-201-229/+0Star
| | | | | | | | | | | Access to the gpxe.org and etherboot.org domains and associated resources has been revoked by the registrant of the domain. Work around this problem by renaming project from gPXE to iPXE, and updating URLs to match. Also update README, LOG and COPYRIGHTS to remove obsolete information. Signed-off-by: Michael Brown <mcb30@ipxe.org>
* [legal] Add a selection of FILE_LICENCE declarationsMichael Brown2009-05-181-0/+2
| | | | | Add FILE_LICENCE declarations to almost all files that make up the various standard builds of gPXE.
* [iobuf] Add iob_disown() and use it where it simplifies codeMichael Brown2009-02-011-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | There are many functions that take ownership of the I/O buffer they are passed as a parameter. The caller should not retain a pointer to the I/O buffer. Use iob_disown() to automatically nullify the caller's pointer, e.g.: xfer_deliver_iob ( xfer, iob_disown ( iobuf ) ); This will ensure that iobuf is set to NULL for any code after the call to xfer_deliver_iob(). iob_disown() is currently used only in places where it simplifies the code, by avoiding an extra line explicitly setting the I/O buffer pointer to NULL. It should ideally be used with each call to any function that takes ownership of an I/O buffer. (The SSA optimisations will ensure that use of iob_disown() gets optimised away in cases where the caller makes no further use of the I/O buffer pointer anyway.) If gcc ever introduces an __attribute__((free)), indicating that use of a function argument after a function call should generate a warning, then we should use this to identify all applicable function call sites, and add iob_disown() as necessary.
* [linda] Add support for QLogic 7220-based Infiniband HCAsMichael Brown2008-11-111-0/+18
| | | | | | | | | These cards very nearly support our current IB Verbs model. There is one minor difference: multicast packets will always be delivered by the hardware to QP0, so the driver has to redirect them to the appropriate QP. This means that QP owners may see receive completions for buffers that they never posted. Nothing in our current codebase will break because of this.
* Moved iobuf.h assertions outside the static inline functions, so thatMichael Brown2007-09-211-4/+24
| | | | | | | the assert message's file and line number gives some clue as to the real location of the problem. Added similar assertions to list.h.
* use malloc attributeHolger Lubitz2007-08-201-1/+1
|
* Add per-file error identifiersMichael Brown2007-07-241-19/+1Star
|
* Add iob_ensure_headroom() placeholder.Michael Brown2007-06-201-0/+19
|
* Add alloc_iob() and free_iob(). (Direct search-and-replaceMichael Brown2007-05-181-39/+59
| | | | | equivalents for alloc_pkb() and free_pkb(), which will be retired in due course).
* Initial sketch for the generic data-transfer interface.Michael Brown2007-04-271-0/+148