Lines Matching defs:action
53 * kobject_action_type - translate action string to numeric type
55 * @buf: buffer containing the action string, newline is ignored
57 * @type: pointer to the location to store the action type
59 * Returns 0 if the action string was recognized.
64 enum kobject_action action;
73 for (action = 0; action < ARRAY_SIZE(kobject_actions); action++) {
74 if (strncmp(kobject_actions[action], buf, count) != 0)
76 if (kobject_actions[action][count] != '\0')
78 *type = action;
122 * @action: action that is happening
123 * @kobj: struct kobject that the action is happening to
129 int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
133 const char *action_string = kobject_actions[action];
241 if (action == KOBJ_ADD)
243 else if (action == KOBJ_REMOVE)
322 * @action: action that is happening
323 * @kobj: struct kobject that the action is happening to
328 int kobject_uevent(struct kobject *kobj, enum kobject_action action)
330 return kobject_uevent_env(kobj, action, NULL);