# SubscriberCallback - [Overview](#section839425282165636) - [Summary](#section2092979264165636) - [Data Fields](#pub-attribs) - [Details](#section1119853582165636) - [Field](#section2073433366165636) - [deviceObject](#af8640bdb30eb50c1d69781940b62c20d) - [OnServiceConnected](#a71a9efad360e2944550c36a97791e6e6) ## **Overview** **Related Modules:** [Core](Core.md) **Description:** Called when the driver subscribes to other driver services. The callback is used in the service subscription mechanism. After the driver is registered with the HDF, the HDF proactively invokes the callback after the subscribed-to driver is loaded. **Since:** 1.0 ## **Summary** ## Data Fields
struct HdfDeviceObject * |
|
OnServiceConnected )(struct HdfDeviceObject *deviceObject, const struct HdfObject *service) |
Called by the HDF when the subscribed-to driver service is loaded. |
| deviceObject | Indicates the pointer to the variable of the HdfDeviceObject type. This variable is generated by the HDF and passed to the driver. |
| service | Indicates the pointer to the service object. |