iPXE
null_sanboot.c File Reference
#include <errno.h>
#include <ipxe/sanboot.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
static int null_san_hook (unsigned int drive __unused, struct uri **uris __unused, unsigned int count __unused, unsigned int flags __unused)
static void null_san_unhook (unsigned int drive __unused)
static int null_san_boot (unsigned int drive __unused, struct san_boot_config *config __unused)
static int null_san_describe (void)
 PROVIDE_SANBOOT (null, san_hook, null_san_hook)
 PROVIDE_SANBOOT (null, san_unhook, null_san_unhook)
 PROVIDE_SANBOOT (null, san_boot, null_san_boot)
 PROVIDE_SANBOOT (null, san_describe, null_san_describe)

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ null_san_hook()

int null_san_hook ( unsigned int drive __unused,
struct uri **uris __unused,
unsigned int count __unused,
unsigned int flags __unused )
static

Definition at line 29 of file null_sanboot.c.

32 {
33 return -EOPNOTSUPP;
34}
#define EOPNOTSUPP
Operation not supported on socket.
Definition errno.h:605

References __unused, count, drive, EOPNOTSUPP, and flags.

Referenced by PROVIDE_SANBOOT().

◆ null_san_unhook()

void null_san_unhook ( unsigned int drive __unused)
static

Definition at line 36 of file null_sanboot.c.

36 {
37 /* Do nothing */
38}

References __unused, and drive.

Referenced by PROVIDE_SANBOOT().

◆ null_san_boot()

int null_san_boot ( unsigned int drive __unused,
struct san_boot_config *config __unused )
static

Definition at line 40 of file null_sanboot.c.

41 {
42 return -EOPNOTSUPP;
43}

References __unused, drive, and EOPNOTSUPP.

Referenced by PROVIDE_SANBOOT().

◆ null_san_describe()

int null_san_describe ( void )
static

Definition at line 45 of file null_sanboot.c.

45 {
46 return -EOPNOTSUPP;
47}

References EOPNOTSUPP.

Referenced by PROVIDE_SANBOOT().

◆ PROVIDE_SANBOOT() [1/4]

PROVIDE_SANBOOT ( null ,
san_hook ,
null_san_hook  )

References null_san_hook(), and san_hook().

◆ PROVIDE_SANBOOT() [2/4]

PROVIDE_SANBOOT ( null ,
san_unhook ,
null_san_unhook  )

References null_san_unhook(), and san_unhook().

◆ PROVIDE_SANBOOT() [3/4]

PROVIDE_SANBOOT ( null ,
san_boot ,
null_san_boot  )

References null_san_boot(), and san_boot().

◆ PROVIDE_SANBOOT() [4/4]

PROVIDE_SANBOOT ( null ,
san_describe ,
null_san_describe  )