#include "bioscfg.h"
#define WMI_STRING_TYPE …
GET_INSTANCE_ID(string);
static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf)
{ … }
static int validate_string_input(int instance_id, const char *buf)
{ … }
static void update_string_value(int instance_id, char *attr_value)
{ … }
ATTRIBUTE_S_COMMON_PROPERTY_SHOW(display_name, string);
static struct kobj_attribute string_display_name = …;
ATTRIBUTE_PROPERTY_STORE(current_value, string);
static struct kobj_attribute string_current_val = …;
ATTRIBUTE_N_PROPERTY_SHOW(min_length, string);
static struct kobj_attribute string_min_length = …;
ATTRIBUTE_N_PROPERTY_SHOW(max_length, string);
static struct kobj_attribute string_max_length = …;
static ssize_t type_show(struct kobject *kobj, struct kobj_attribute *attr,
char *buf)
{ … }
static struct kobj_attribute string_type = …;
static struct attribute *string_attrs[] = …;
static const struct attribute_group string_attr_group = …;
int hp_alloc_string_data(void)
{ … }
static const acpi_object_type expected_string_types[] = …;
static int hp_populate_string_elements_from_package(union acpi_object *string_obj,
int string_obj_count,
int instance_id)
{ … }
int hp_populate_string_package_data(union acpi_object *string_obj,
int instance_id,
struct kobject *attr_name_kobj)
{ … }
static int hp_populate_string_elements_from_buffer(u8 *buffer_ptr, u32 *buffer_size,
int instance_id)
{ … }
int hp_populate_string_buffer_data(u8 *buffer_ptr, u32 *buffer_size,
int instance_id,
struct kobject *attr_name_kobj)
{ … }
void hp_exit_string_attributes(void)
{ … }