/kernel/linux/linux-5.10/lib/ |
D | kobject.c | 35 return kobj->ktype->namespace(kobj); in kobject_namespace() 53 if (kobj->ktype->get_ownership) in kobject_get_ownership() 54 kobj->ktype->get_ownership(kobj, uid, gid); in kobject_get_ownership() 85 const struct kobj_type *ktype = get_ktype(kobj); in create_dir() local 99 if (ktype) { in create_dir() 100 error = sysfs_create_groups(kobj, ktype->default_groups); in create_dir() 349 void kobject_init(struct kobject *kobj, struct kobj_type *ktype) in kobject_init() argument 357 if (!ktype) { in kobject_init() 369 kobj->ktype = ktype; in kobject_init() 464 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, in kobject_init_and_add() argument [all …]
|
D | kobject_uevent.c | 244 ns = kobj->ktype->namespace(kobj); in kobj_usermode_filter() 404 if (ops && ops->netlink_ns && kobj->ktype->namespace) in kobject_uevent_net_broadcast() 406 net = kobj->ktype->namespace(kobj); in kobject_uevent_net_broadcast()
|
/kernel/linux/linux-5.10/security/keys/ |
D | key.c | 704 struct key_type *ktype; in key_type_lookup() local 710 list_for_each_entry(ktype, &key_types_list, link) { in key_type_lookup() 711 if (strcmp(ktype->name, type) == 0) in key_type_lookup() 716 ktype = ERR_PTR(-ENOKEY); in key_type_lookup() 719 return ktype; in key_type_lookup() 742 void key_type_put(struct key_type *ktype) in key_type_put() argument 1149 int register_key_type(struct key_type *ktype) in register_key_type() argument 1154 memset(&ktype->lock_class, 0, sizeof(ktype->lock_class)); in register_key_type() 1161 if (strcmp(p->name, ktype->name) == 0) in register_key_type() 1166 list_add(&ktype->link, &key_types_list); in register_key_type() [all …]
|
D | keyctl.c | 172 struct key_type *ktype; in SYSCALL_DEFINE4() local 215 ktype = key_type_lookup(type); in SYSCALL_DEFINE4() 216 if (IS_ERR(ktype)) { in SYSCALL_DEFINE4() 217 ret = PTR_ERR(ktype); in SYSCALL_DEFINE4() 222 key = request_key_and_link(ktype, description, NULL, callout_info, in SYSCALL_DEFINE4() 240 key_type_put(ktype); in SYSCALL_DEFINE4() 721 struct key_type *ktype; in keyctl_keyring_search() local 756 ktype = key_type_lookup(type); in keyctl_keyring_search() 757 if (IS_ERR(ktype)) { in keyctl_keyring_search() 758 ret = PTR_ERR(ktype); in keyctl_keyring_search() [all …]
|
D | gc.c | 99 void key_gc_keytype(struct key_type *ktype) in key_gc_keytype() argument 101 kenter("%s", ktype->name); in key_gc_keytype() 103 key_gc_dead_keytype = ktype; in key_gc_keytype()
|
D | internal.h | 93 extern void key_type_put(struct key_type *ktype); 181 extern void key_gc_keytype(struct key_type *ktype);
|
/kernel/linux/linux-5.10/include/linux/ |
D | kobject.h | 69 struct kobj_type *ktype; member 93 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype); 99 struct kobj_type *ktype, struct kobject *parent, 223 return kobj->ktype; in get_ktype()
|
D | key-type.h | 165 extern int register_key_type(struct key_type *ktype); 166 extern void unregister_key_type(struct key_type *ktype);
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_sysfs.h | 31 struct kobj_type *ktype, in xfs_sysfs_init() argument 39 return kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
|
/kernel/linux/linux-5.10/fs/sysfs/ |
D | file.c | 32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops() 257 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; in sysfs_add_file_mode_ns() 673 const struct kobj_type *ktype; in sysfs_change_owner() local 683 ktype = get_ktype(kobj); in sysfs_change_owner() 684 if (ktype) { in sysfs_change_owner() 691 for (kattr = ktype->default_attrs; kattr && *kattr; kattr++) { in sysfs_change_owner() 702 error = sysfs_groups_change_owner(kobj, ktype->default_groups, in sysfs_change_owner()
|
/kernel/linux/linux-5.10/drivers/s390/crypto/ |
D | pkey_api.c | 542 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_genseckey2() argument 552 switch (ktype) { in pkey_genseckey2() 578 if (ktype == PKEY_TYPE_EP11) { in pkey_genseckey2() 581 } else if (ktype == PKEY_TYPE_CCA_DATA) { in pkey_genseckey2() 595 enum pkey_key_type ktype, enum pkey_key_size ksize, in pkey_clr2seckey2() argument 606 switch (ktype) { in pkey_clr2seckey2() 632 if (ktype == PKEY_TYPE_EP11) { in pkey_clr2seckey2() 635 } else if (ktype == PKEY_TYPE_CCA_DATA) { in pkey_clr2seckey2() 651 enum pkey_key_type *ktype, in pkey_verifykey2() argument 668 if (ktype) in pkey_verifykey2() [all …]
|
/kernel/linux/linux-5.10/drivers/firmware/ |
D | qemu_fw_cfg.c | 522 if (ko->ktype != dir->kobj.ktype) { in fw_cfg_build_symlink() 537 subdir->kobj.ktype = dir->kobj.ktype; in fw_cfg_build_symlink() 566 if (k->ktype == kset->kobj.ktype) in fw_cfg_kset_unregister_recursive()
|
/kernel/linux/linux-5.10/Documentation/core-api/ |
D | kobject.rst | 32 - A ktype is the type of object that embeds a kobject. Every structure 33 that embeds a kobject needs a corresponding ktype. The ktype controls 36 - A kset is a group of kobjects. These kobjects can be of the same ktype 121 void kobject_init(struct kobject *kobj, struct kobj_type *ktype); 123 The ktype is required for a kobject to be created properly, as every kobject 159 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, 296 instead, it is associated with the ktype. So let us introduce struct 320 automatically created for any kobject that is registered with this ktype. 327 each other. There is no restriction that they be of the same ktype, but be
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/ |
D | rtrs-srv-sysfs.c | 24 static struct kobj_type ktype = { variable 281 err = kobject_init_and_add(&sess->kobj, &ktype, srv->kobj_paths, in rtrs_srv_create_sess_files()
|
/kernel/linux/linux-5.10/drivers/media/rc/ |
D | imon.c | 1535 unsigned char *buf, u8 ktype) in imon_parse_press_type() argument 1557 else if (ktype == IMON_KEY_MCE) { in imon_parse_press_type() 1593 u8 ktype; in imon_incoming_packet() local 1602 ktype = IMON_KEY_PANEL; in imon_incoming_packet() 1608 ktype = IMON_KEY_IMON; in imon_incoming_packet() 1610 ktype = IMON_KEY_MCE; in imon_incoming_packet() 1613 ktype = IMON_KEY_IMON; in imon_incoming_packet() 1661 press_type = imon_parse_press_type(ictx, buf, ktype); in imon_incoming_packet() 1665 if (ktype != IMON_KEY_PANEL) { in imon_incoming_packet()
|
/kernel/linux/linux-5.10/include/linux/ceph/ |
D | decode.h | 174 #define ceph_decode_skip_map(p, end, ktype, vtype, bad) \ argument 180 ceph_decode_skip_##ktype(p, end, bad); \
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | mac.c | 475 const u8 ktype, const u8 keyidx, const u8 *keydata, in carl9170_upload_key() argument 486 key.type = cpu_to_le16(ktype); in carl9170_upload_key()
|
D | main.c | 1167 u8 ktype; in carl9170_op_set_key() local 1196 ktype = AR9170_ENC_ALG_WEP64; in carl9170_op_set_key() 1199 ktype = AR9170_ENC_ALG_WEP128; in carl9170_op_set_key() 1202 ktype = AR9170_ENC_ALG_TKIP; in carl9170_op_set_key() 1205 ktype = AR9170_ENC_ALG_AESCCMP; in carl9170_op_set_key() 1234 ktype, 0, key->key, in carl9170_op_set_key() 1241 NULL, ktype, 1, in carl9170_op_set_key()
|
D | carl9170.h | 569 const u8 ktype, const u8 keyidx, const u8 *keydata, const int keylen);
|
/kernel/linux/linux-5.10/fs/ceph/ |
D | mdsmap.c | 74 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 79 need = (sizeof(ktype) + sizeof(vtype)) * n; \
|
/kernel/linux/linux-5.10/fs/ocfs2/cluster/ |
D | masklog.c | 154 .kobj = {.ktype = &mlog_ktype},
|
/kernel/linux/linux-5.10/drivers/base/ |
D | bus.c | 168 struct kobj_type *ktype = get_ktype(kobj); in bus_uevent_filter() local 170 if (ktype == &bus_ktype) in bus_uevent_filter() 824 priv->subsys.kobj.ktype = &bus_ktype; in bus_register()
|
D | class.c | 184 cp->subsys.kobj.ktype = &class_ktype; in __class_register()
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | core_priv.h | 394 struct kobject *kobj, struct kobj_type *ktype,
|
/kernel/linux/linux-5.10/kernel/ |
D | params.c | 915 struct kobj_type *ktype = get_ktype(kobj); in uevent_filter() local 917 if (ktype == &module_ktype) in uevent_filter()
|