Lines Matching defs:id
48 static inline unsigned int genl_family_hash(unsigned int id)
50 return id & GENL_FAM_TAB_MASK;
53 static inline struct list_head *genl_family_chain(unsigned int id)
55 return &family_ht[genl_family_hash(id)];
58 static struct genl_family *genl_family_find_byid(unsigned int id)
62 list_for_each_entry(f, genl_family_chain(id), family_list)
63 if (f->id == id)
203 * The family id may equal GENL_ID_GENERATE causing an unique id to
212 if (family->id && family->id < GENL_MIN_ID)
215 if (family->id > GENL_MAX_ID)
227 if (genl_family_find_byid(family->id)) {
232 if (family->id == GENL_ID_GENERATE) {
240 family->id = newid;
253 list_add_tail(&family->family_list, genl_family_chain(family->id));
280 list_for_each_entry(rc, genl_family_chain(family->id), family_list) {
281 if (family->id != rc->id || strcmp(rc->name, family->name))
367 .id = GENL_ID_CTRL,
383 NLA_PUT_U16(skb, CTRL_ATTR_FAMILY_ID, family->id);
488 u16 id = nla_get_u16(info->attrs[CTRL_ATTR_FAMILY_ID]);
489 res = genl_family_find_byid(id);