October 2017
Intermediate to advanced
586 pages
14h 8m
English
The probe() function is a part of the struct i2c_driver structure, and is executed anytime, once an I2C device is instantiated. It is responsible for the following tasks:
The probe function's prototype is as follows:
static int foo_probe(struct i2c_client *client, const struct i2c_device_id *id)
As you can see, its parameters are: