Home
last modified time | relevance | path

Searched refs:__cdev (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/tools/lib/thermal/
H A Dcommands.c75 struct thermal_cdev *__cdev = NULL; in parse_cdev_get() local
85 __cdev = realloc(__cdev, sizeof(*__cdev) * (size + 2)); in parse_cdev_get()
86 if (!__cdev) in parse_cdev_get()
89 __cdev[size - 1].id = nla_get_u32(attr); in parse_cdev_get()
93 nla_strlcpy(__cdev[size - 1].name, attr, in parse_cdev_get()
98 __cdev[size - 1].cur_state = nla_get_u32(attr); in parse_cdev_get()
101 __cdev[size - 1].max_state = nla_get_u32(attr); in parse_cdev_get()
104 if (__cdev) in parse_cdev_get()
105 __cdev[size].id = -1; in parse_cdev_get()
107 *cdev = __cdev; in parse_cdev_get()