unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (OpenBSD-5.7)
Page:
Section:
Apropos / Subsearch:
optional field

LOADFIRMWARE(9)          BSD Kernel Developer's Manual         LOADFIRMWARE(9)

NAME
     loadfirmware -- load a firmware file from the filesystem

SYNOPSIS
     #include <&lt;sys/device.h>&gt;

     int
     loadfirmware(const char *filename, u_char **buf, size_t *buflen);

DESCRIPTION
     The loadfirmware() function loads a firmware from the file specified by
     filename in the directory /etc/firmware.  Memory for the firmware is
     allocated using malloc(9) with type M_DEVBUF as need be, within a reason-
     able size limit.

     If no longer needed, the firmware buffer buf can be freed using free(9)
     with type M_DEVBUF.

RETURN VALUES
     If successful, buf is set to point to the allocation and buflen is set to
     the size of the firmware.  Then loadfirmware() returns 0.  Otherwise, it
     returns an errno style error.

BSD                              June 4, 2013                              BSD