hwi_alloc_tag()

QNX SDP8.0Building Embedded SystemsConfigurationDeveloper

Add a tag structure to the system page hwinfo section.

Synopsis:

void *hwi_alloc_tag(const char *tagname, 
                    unsigned size, 
                    unsigned align);

Arguments:

tagname
The name of the tag to be added.
size
The size, in bytes, of the tag to be allocated.
align
Ensure the structure is correctly aligned. If the structure contains any 64-bit integer fields, set align to 8; otherwise, set it to 4.

Description:

This function allocates a tag of size size with the tag name of tagname in the hwinfo section of the system page. It fills in the hwi_prefix structure automatically.

Returns:

>0
Success: a pointer to a location in memory that can be filled in as appropriate.
Page updated: