28 #include <linux/slab.h> 42 if (!key || strlen(key) == 0) {
46 if (!(flag->
key = (uint8_t *) kmalloc(strlen(key) + 1, GFP_KERNEL))) {
50 strcpy(flag->
key, key);
char * key
Flag key (null-terminated ASCII string.
void ec_flag_clear(ec_flag_t *flag)
SDO request destructor.
Slave configutation feature flag.
EtherCAT Slave Configuration Feature Flag.
int32_t value
Flag value (meaning depends on key).
int ec_flag_init(ec_flag_t *flag, const char *key, int32_t value)
SDO request constructor.