I am a new driver writer. I am writing a pseudo driver.
As my understanding, the a device node (dev_info_t) must exist before the attach routine is called.
int attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
For the hardware device, the node will be built when the system boots.
But when the node is built on the device tree for the pseudo device.