Name

class_simple_set_hotplug — set the hotplug callback in the embedded struct class

Synopsis

int class_simple_set_hotplug (struct class_simple *  cs,
 int (* hotplug) (struct class_device *dev, char **envp, int num_envp, char *buffer, int buffer_size));

Arguments

cs

pointer to the struct class_simple to hold the pointer

hotplug

function pointer to the hotplug function

Description

Implement and set a hotplug function to add environment variables specific to this class on the hotplug event.