Lines Matching refs:family

39 	struct genl_family *family = (struct genl_family *) c;  in family_constructor()  local
41 nl_init_list_head(&family->gf_ops); in family_constructor()
46 struct genl_family *family = (struct genl_family *) c; in family_free_data() local
49 if (family == NULL) in family_free_data()
52 nl_list_for_each_entry_safe(ops, tmp, &family->gf_ops, o_list) { in family_free_data()
76 struct genl_family *family = (struct genl_family *) obj; in family_dump_line() local
79 family->gf_id, family->gf_name, family->gf_version); in family_dump_line()
96 struct genl_family *family = (struct genl_family *) obj; in family_dump_details() local
100 family->gf_hdrsize, family->gf_maxattr); in family_dump_details()
102 if (family->ce_mask & FAMILY_ATTR_OPS) { in family_dump_details()
106 nl_list_for_each_entry(op, &family->gf_ops, o_list) { in family_dump_details()
109 genl_op2name(family->gf_id, op->o_id, buf, sizeof(buf)); in family_dump_details()
159 void genl_family_put(struct genl_family *family) in genl_family_put() argument
161 nl_object_put((struct nl_object *) family); in genl_family_put()
171 unsigned int genl_family_get_id(struct genl_family *family) in genl_family_get_id() argument
173 if (family->ce_mask & FAMILY_ATTR_ID) in genl_family_get_id()
174 return family->gf_id; in genl_family_get_id()
179 void genl_family_set_id(struct genl_family *family, unsigned int id) in genl_family_set_id() argument
181 family->gf_id = id; in genl_family_set_id()
182 family->ce_mask |= FAMILY_ATTR_ID; in genl_family_set_id()
185 char *genl_family_get_name(struct genl_family *family) in genl_family_get_name() argument
187 if (family->ce_mask & FAMILY_ATTR_NAME) in genl_family_get_name()
188 return family->gf_name; in genl_family_get_name()
193 void genl_family_set_name(struct genl_family *family, const char *name) in genl_family_set_name() argument
195 strncpy(family->gf_name, name, GENL_NAMSIZ-1); in genl_family_set_name()
196 family->ce_mask |= FAMILY_ATTR_NAME; in genl_family_set_name()
199 uint8_t genl_family_get_version(struct genl_family *family) in genl_family_get_version() argument
201 if (family->ce_mask & FAMILY_ATTR_VERSION) in genl_family_get_version()
202 return family->gf_version; in genl_family_get_version()
207 void genl_family_set_version(struct genl_family *family, uint8_t version) in genl_family_set_version() argument
209 family->gf_version = version; in genl_family_set_version()
210 family->ce_mask |= FAMILY_ATTR_VERSION; in genl_family_set_version()
213 uint32_t genl_family_get_hdrsize(struct genl_family *family) in genl_family_get_hdrsize() argument
215 if (family->ce_mask & FAMILY_ATTR_HDRSIZE) in genl_family_get_hdrsize()
216 return family->gf_hdrsize; in genl_family_get_hdrsize()
221 void genl_family_set_hdrsize(struct genl_family *family, uint32_t hdrsize) in genl_family_set_hdrsize() argument
223 family->gf_hdrsize = hdrsize; in genl_family_set_hdrsize()
224 family->ce_mask |= FAMILY_ATTR_HDRSIZE; in genl_family_set_hdrsize()
227 uint32_t genl_family_get_maxattr(struct genl_family *family) in genl_family_get_maxattr() argument
229 if (family->ce_mask & FAMILY_ATTR_MAXATTR) in genl_family_get_maxattr()
230 return family->gf_maxattr; in genl_family_get_maxattr()
232 return family->gf_maxattr; in genl_family_get_maxattr()
235 void genl_family_set_maxattr(struct genl_family *family, uint32_t maxattr) in genl_family_set_maxattr() argument
237 family->gf_maxattr = maxattr; in genl_family_set_maxattr()
238 family->ce_mask |= FAMILY_ATTR_MAXATTR; in genl_family_set_maxattr()
241 int genl_family_add_op(struct genl_family *family, int id, int flags) in genl_family_add_op() argument
252 nl_list_add_tail(&op->o_list, &family->gf_ops); in genl_family_add_op()
253 family->ce_mask |= FAMILY_ATTR_OPS; in genl_family_add_op()