DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

udi_buf_free(3udi)


Free a logical buffer

SYNOPSIS

#include <udi.h>

void udi_buf_free ( udi_buf_t *buf );
 

ARGUMENTS buf is a pointer to the buffer to be deallocated. If buf is NULL on entry, this routine is a no-op.

DESCRIPTION udi_buf_free is called to indicate that a UDI buffer is no longer needed. The buffer and all associated resources will be released and the caller must no longer use the buffer handle, buf.

If buf is equal to NULL, explicitly or implicitly (zeroed by initial value or by using udi_memset), this function acts as a no-op. Otherwise, buf must have been allocated by udi_buf_copy or udi_buf_write, or passed to the driver via a channel operation.

REFERENCES udi_buf_copy, udi_buf_write


UDI Core Specification Contents