attribute
char *attribute;
attribute = s;
s = strchr(attribute, ' ');
attribute);
return restore_toplevel_attr(attribute, txt);
return restore_player_attr(attribute, txt);
return restore_deck_attr(attribute, txt);
return restore_square_attr(attribute, txt);
restore_toplevel_attr(const char *attribute, char *txt)
if (!strcmp(attribute, "time")) {
} else if (!strcmp(attribute, "numplayers")) {
} else if (!strcmp(attribute, "currentplayer")) {
} else if (!strcmp(attribute, "doubles")) {
} else if (!strcmp(attribute, "player")) {
} else if (!strcmp(attribute, "deck")) {
} else if (!strcmp(attribute, "square")) {
printf("unknown attribute %s\n", attribute);
restore_player_attr(const char *attribute, char *txt)
if (!strcmp(attribute, "name")) {
} else if (!strcmp(attribute, "money")) {
if (getnum(attribute, txt, 0, INT_MAX, &pp->money) < 0) {
} else if (!strcmp(attribute, "loc")) {
if (getnum(attribute, txt, 0, N_SQRS, &tmp) < 0) {
} else if (!strcmp(attribute, "num_gojf")) {
if (getnum(attribute, txt, 0, 2, &tmp) < 0) {
} else if (!strcmp(attribute, "in_jail")) {
if (getnum(attribute, txt, 0, 3, &tmp) < 0) {
static int restore_toplevel_attr(const char *attribute, char *txt);
printf("unknown attribute %s\n", attribute);
static int restore_player_attr(const char *attribute, char *txt);
restore_deck_attr(const char *attribute, char *txt)
if (!strcmp(attribute, "numcards")) {
static int restore_deck_attr(const char *attribute, char *txt);
if (getnum(attribute, txt, dp->num_cards, dp->num_cards,
} else if (!strcmp(attribute, "topcard")) {
if (getnum(attribute, txt, 0, dp->num_cards,
} else if (!strcmp(attribute, "gojf_used")) {
static int restore_square_attr(const char *attribute, char *txt);
if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
} else if (!strcmp(attribute, "cards")) {
printf("unknown attribute %s\n", attribute);
restore_square_attr(const char *attribute, char *txt)
if (!strcmp(attribute, "owner")) {
if (getnum(attribute, txt, -1, num_play-1, &tmp) < 0) {
} else if (!strcmp(attribute, "morg")) {
if (getnum(attribute, txt, 0, 1, &tmp) < 0) {
} else if (!strcmp(attribute, "houses")) {
if (getnum(attribute, txt, 0, 5, &tmp) < 0) {
printf("unknown attribute %s\n", attribute);
desc->address, desc->length, desc->attribute);
descs[i].attribute =
descs[nsegs-1].attribute |= SDHCI_ADMA2_ATTR_END;
uint16_t attribute;
uint16_t attribute;
static struct attribute *hwmon_attributes[] = {
struct attribute *attr, int index)
static struct attribute *drm_dp_aux_attrs[] = {
struct attribute *attrs[2];
static struct attribute *i915_pmu_format_attrs[] = {
static struct attribute *i915_cpumask_attrs[] = {
static struct attribute **
struct attribute **attr = NULL, **attr_iter;
struct attribute **attr_iter = i915_pmu_events_attr_group.attrs;
static struct attribute *rc6_attrs[] = {
static struct attribute *rc6p_attrs[] = {
static struct attribute *media_rc6_attrs[] = {
static const struct attribute *gen6_attrs[] = {
static const struct attribute *vlv_attrs[] = {
u8 attribute;
desc->attribute = GUC_STAGE_DESC_ATTR_ACTIVE |
desc->attribute |= GUC_STAGE_DESC_ATTR_PREEMPT;
stage_desc->attribute &= ~GUC_STAGE_DESC_ATTR_TERMINATED;
struct attribute **default_attrs;
ssize_t (*show)(struct kobject *, struct attribute *,char *);
ssize_t (*store)(struct kobject *,struct attribute *,const char *, size_t);
static struct attribute *hwmon_attributes[] = {
struct attribute *attr, int index)
struct attribute *attr,
static struct attribute *ttm_bo_global_attrs[] = {
static struct attribute ttm_bo_count = {
struct attribute *attr,
static struct attribute *ttm_mem_zone_attrs[] = {
static struct attribute ttm_mem_sys = {
static struct attribute ttm_mem_emer = {
static struct attribute ttm_mem_max = {
static struct attribute ttm_mem_swap = {
static struct attribute ttm_mem_used = {
struct attribute *attr,
static struct attribute ttm_page_pool_max = {
static struct attribute ttm_page_pool_small = {
static struct attribute ttm_page_pool_alloc_size = {
static struct attribute *ttm_pool_attrs[] = {
struct attribute *attr, const char *buffer, size_t size)
struct attribute *attr, char *buffer)
static struct attribute ttm_page_pool_max = {
static struct attribute ttm_page_pool_small = {
static struct attribute ttm_page_pool_alloc_size = {
static struct attribute *ttm_pool_attrs[] = {
static ssize_t ttm_pool_store(struct kobject *kobj, struct attribute *attr,
static ssize_t ttm_pool_show(struct kobject *kobj, struct attribute *attr,
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE; /* XXX ordered tags? */
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
cc->cdb.attribute = CISS_CDB_ATTRIBUTE_SIMPLE;
(cc->cdb.attribute == CISS_CDB_ATTRIBUTE_UNTAGGED) ? "untagged" :
(cc->cdb.attribute == CISS_CDB_ATTRIBUTE_SIMPLE) ? "simple" :
(cc->cdb.attribute == CISS_CDB_ATTRIBUTE_HEAD_OF_QUEUE) ? "head-of-queue" :
(cc->cdb.attribute == CISS_CDB_ATTRIBUTE_ORDERED) ? "ordered" :
(cc->cdb.attribute == CISS_CDB_ATTRIBUTE_AUTO_CONTINGENT) ? "auto-contingent" : "??");
u_int8_t attribute:3;