/Linux-v4.19/security/keys/ |
D | key.c | 691 struct key_type *ktype; in key_type_lookup() local 697 list_for_each_entry(ktype, &key_types_list, link) { in key_type_lookup() 698 if (strcmp(ktype->name, type) == 0) in key_type_lookup() 703 ktype = ERR_PTR(-ENOKEY); in key_type_lookup() 706 return ktype; in key_type_lookup() 729 void key_type_put(struct key_type *ktype) in key_type_put() argument 1112 int register_key_type(struct key_type *ktype) in register_key_type() argument 1117 memset(&ktype->lock_class, 0, sizeof(ktype->lock_class)); in register_key_type() 1124 if (strcmp(p->name, ktype->name) == 0) in register_key_type() 1129 list_add(&ktype->link, &key_types_list); in register_key_type() [all …]
|
D | keyctl.c | 163 struct key_type *ktype; in SYSCALL_DEFINE4() local 206 ktype = key_type_lookup(type); in SYSCALL_DEFINE4() 207 if (IS_ERR(ktype)) { in SYSCALL_DEFINE4() 208 ret = PTR_ERR(ktype); in SYSCALL_DEFINE4() 213 key = request_key_and_link(ktype, description, callout_info, in SYSCALL_DEFINE4() 231 key_type_put(ktype); in SYSCALL_DEFINE4() 665 struct key_type *ktype; in keyctl_keyring_search() local 700 ktype = key_type_lookup(type); in keyctl_keyring_search() 701 if (IS_ERR(ktype)) { in keyctl_keyring_search() 702 ret = PTR_ERR(ktype); in keyctl_keyring_search() [all …]
|
D | gc.c | 104 void key_gc_keytype(struct key_type *ktype) in key_gc_keytype() argument 106 kenter("%s", ktype->name); in key_gc_keytype() 108 key_gc_dead_keytype = ktype; in key_gc_keytype()
|
D | internal.h | 94 extern void key_type_put(struct key_type *ktype); 177 extern void key_gc_keytype(struct key_type *ktype);
|
/Linux-v4.19/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() 341 void kobject_init(struct kobject *kobj, struct kobj_type *ktype) in kobject_init() argument 349 if (!ktype) { in kobject_init() 361 kobj->ktype = ktype; in kobject_init() 444 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype, in kobject_init_and_add() argument 450 kobject_init(kobj, ktype); in kobject_init_and_add() 940 kset->kobj.ktype = &kset_ktype; in kset_create() 1026 if (parent && parent->ktype && parent->ktype->child_ns_type) in kobj_child_ns_ops() [all …]
|
D | kobject_uevent.c | 243 ns = kobj->ktype->namespace(kobj); in kobj_usermode_filter() 401 if (ops && ops->netlink_ns && kobj->ktype->namespace) in kobject_uevent_net_broadcast() 403 net = kobj->ktype->namespace(kobj); in kobject_uevent_net_broadcast()
|
/Linux-v4.19/include/linux/ |
D | kobject.h | 70 struct kobj_type *ktype; member 94 extern void kobject_init(struct kobject *kobj, struct kobj_type *ktype); 100 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);
|
/Linux-v4.19/fs/xfs/ |
D | xfs_sysfs.h | 31 struct kobj_type *ktype, in xfs_sysfs_init() argument 36 return kobject_init_and_add(&kobj->kobject, ktype, in xfs_sysfs_init()
|
/Linux-v4.19/drivers/firmware/ |
D | qemu_fw_cfg.c | 524 if (ko->ktype != dir->kobj.ktype) { in fw_cfg_build_symlink() 539 subdir->kobj.ktype = dir->kobj.ktype; in fw_cfg_build_symlink() 568 if (k->ktype == kset->kobj.ktype) in fw_cfg_kset_unregister_recursive()
|
/Linux-v4.19/Documentation/ |
D | kobject.txt | 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, 292 instead, it is associated with the ktype. So let us introduce struct 314 automatically created for any kobject that is registered with this ktype. 321 each other. There is no restriction that they be of the same ktype, but be
|
/Linux-v4.19/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()
|
/Linux-v4.19/drivers/media/rc/ |
D | imon.c | 1506 unsigned char *buf, u8 ktype) in imon_parse_press_type() argument 1528 else if (ktype == IMON_KEY_MCE) { in imon_parse_press_type() 1565 u8 ktype; in imon_incoming_packet() local 1574 ktype = IMON_KEY_PANEL; in imon_incoming_packet() 1580 ktype = IMON_KEY_IMON; in imon_incoming_packet() 1582 ktype = IMON_KEY_MCE; in imon_incoming_packet() 1585 ktype = IMON_KEY_IMON; in imon_incoming_packet() 1634 press_type = imon_parse_press_type(ictx, buf, ktype); in imon_incoming_packet() 1638 if (ktype != IMON_KEY_PANEL) { in imon_incoming_packet()
|
/Linux-v4.19/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); \
|
/Linux-v4.19/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 | 1180 u8 ktype; in carl9170_op_set_key() local 1209 ktype = AR9170_ENC_ALG_WEP64; in carl9170_op_set_key() 1212 ktype = AR9170_ENC_ALG_WEP128; in carl9170_op_set_key() 1215 ktype = AR9170_ENC_ALG_TKIP; in carl9170_op_set_key() 1218 ktype = AR9170_ENC_ALG_AESCCMP; in carl9170_op_set_key() 1247 ktype, 0, key->key, in carl9170_op_set_key() 1254 NULL, ktype, 1, in carl9170_op_set_key()
|
D | carl9170.h | 566 const u8 ktype, const u8 keyidx, const u8 *keydata, const int keylen);
|
/Linux-v4.19/fs/ceph/ |
D | mdsmap.c | 63 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument 68 need = (sizeof(ktype) + sizeof(vtype)) * n; \
|
/Linux-v4.19/fs/ocfs2/cluster/ |
D | masklog.c | 168 .kobj = {.ktype = &mlog_ktype},
|
/Linux-v4.19/drivers/base/ |
D | bus.c | 164 struct kobj_type *ktype = get_ktype(kobj); in bus_uevent_filter() local 166 if (ktype == &bus_ktype) in bus_uevent_filter() 864 priv->subsys.kobj.ktype = &bus_ktype; in bus_register()
|
D | class.c | 177 cp->subsys.kobj.ktype = &class_ktype; in __class_register()
|
/Linux-v4.19/fs/btrfs/ |
D | sysfs.c | 532 if (kobj->ktype != &btrfs_ktype) in to_fs_devs() 539 if (kobj->ktype != &btrfs_ktype) in to_fs_info()
|
/Linux-v4.19/kernel/ |
D | params.c | 915 struct kobj_type *ktype = get_ktype(kobj); in uevent_filter() local 917 if (ktype == &module_ktype) in uevent_filter()
|
/Linux-v4.19/drivers/xen/ |
D | sys-hypervisor.c | 610 hypervisor_kobj->ktype = &hyp_sysfs_kobj_type; in hypervisor_subsys_init()
|
/Linux-v4.19/fs/f2fs/ |
D | sysfs.c | 513 .kobj = {.ktype = &f2fs_ktype},
|