iPXE
Data Fields
root_driver Struct Reference

A root device driver. More...

#include <device.h>

Data Fields

int(* probe )(struct root_device *rootdev)
 Add root device. More...
 
void(* remove )(struct root_device *rootdev)
 Remove root device. More...
 

Detailed Description

A root device driver.

Definition at line 107 of file device.h.

Field Documentation

◆ probe

int( * root_driver::probe) (struct root_device *rootdev)

Add root device.

Parameters
rootdevRoot device
Return values
rcReturn status code

Called from probe_devices() for all root devices in the build.

Definition at line 116 of file device.h.

Referenced by rootdev_probe().

◆ remove

void( * root_driver::remove) (struct root_device *rootdev)

Remove root device.

Parameters
rootdevRoot device

Called from remove_device() for all successfully-probed root devices.

Definition at line 125 of file device.h.

Referenced by rootdev_remove().


The documentation for this struct was generated from the following file: