iPXE
root_driver Struct Reference

A root device driver. More...

#include <device.h>

Data Fields

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

Detailed Description

A root device driver.

Definition at line 111 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 120 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 129 of file device.h.

Referenced by rootdev_remove().


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