Home
last modified time | relevance | path

Searched refs:ktype (Results 1 – 25 of 37) sorted by relevance

12

/linux-6.3-rc2/Documentation/translations/zh_CN/core-api/
A Dkobject.rst36 - ktype是嵌入一个kobject的对象的类型。每个嵌入kobject的结构体都需要一个
37 相应的ktypektype控制着kobject在被创建和销毁时的行为。
39 - 一个kset是一组kobjects。这些kobjects可以是相同的ktype或者属于不同的
40 ktype。kset是kobjects集合的基本容器类型。Ksets包含它们自己的kobjects,
112 void kobject_init(struct kobject *kobj, struct kobj_type *ktype);
114 ktype是正确创建kobject的必要条件,因为每个kobject都必须有一个相关的kobj_type。
143 int kobject_init_and_add(struct kobject *kobj, struct kobj_type *ktype,
255 有趣的是,release()方法并不存储在kobject本身;相反,它与ktype相关。
276 default_groups 指针是一个默认属性的列表,它将为任何用这个 ktype 注册
284 同的ktype,但是如果它们不是相同的,就要非常小心。
/linux-6.3-rc2/lib/
A Dkobject.c35 return kobj->ktype->namespace(kobj); in kobject_namespace()
53 if (kobj->ktype->get_ownership) in kobject_get_ownership()
67 if (ktype) { in create_dir()
333 if (!ktype) { in kobject_init()
345 kobj->ktype = ktype; in kobject_init()
446 kobject_init(kobj, ktype); in kobject_init_and_add()
581 const struct kobj_type *ktype; in __kobject_del() local
584 ktype = get_ktype(kobj); in __kobject_del()
586 if (ktype) in __kobject_del()
968 kset->kobj.ktype = &kset_ktype; in kset_create()
[all …]
A Dkobject_uevent.c244 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()
/linux-6.3-rc2/security/keys/
A Dkey.c705 struct key_type *ktype; in key_type_lookup() local
712 if (strcmp(ktype->name, type) == 0) in key_type_lookup()
717 ktype = ERR_PTR(-ENOKEY); in key_type_lookup()
720 return ktype; in key_type_lookup()
743 void key_type_put(struct key_type *ktype) in key_type_put() argument
1214 int register_key_type(struct key_type *ktype) in register_key_type() argument
1219 memset(&ktype->lock_class, 0, sizeof(ktype->lock_class)); in register_key_type()
1226 if (strcmp(p->name, ktype->name) == 0) in register_key_type()
1231 list_add(&ktype->link, &key_types_list); in register_key_type()
1253 list_del_init(&ktype->link); in unregister_key_type()
[all …]
A Dkeyctl.c172 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 …]
A Dgc.c99 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()
A Dinternal.h93 extern void key_type_put(struct key_type *ktype);
179 extern void key_gc_keytype(struct key_type *ktype);
/linux-6.3-rc2/include/linux/
A Dkobject.h69 const struct kobj_type *ktype; member
93 extern void kobject_init(struct kobject *kobj, const struct kobj_type *ktype);
99 const struct kobj_type *ktype, struct kobject *parent,
203 return kobj->ktype; in get_ktype()
A Dkey-type.h166 extern int register_key_type(struct key_type *ktype);
167 extern void unregister_key_type(struct key_type *ktype);
/linux-6.3-rc2/fs/xfs/
A Dxfs_sysfs.h31 const struct kobj_type *ktype, in xfs_sysfs_init() argument
40 err = kobject_init_and_add(&kobj->kobject, ktype, parent, "%s", name); in xfs_sysfs_init()
/linux-6.3-rc2/drivers/s390/crypto/
A Dpkey_api.c558 switch (ktype) { in pkey_genseckey2()
584 if (ktype == PKEY_TYPE_EP11) { in pkey_genseckey2()
614 switch (ktype) { in pkey_clr2seckey2()
642 if (ktype == PKEY_TYPE_EP11) { in pkey_clr2seckey2()
663 enum pkey_key_type *ktype, in pkey_verifykey2() argument
680 if (ktype) in pkey_verifykey2()
681 *ktype = PKEY_TYPE_CCA_DATA; in pkey_verifykey2()
710 if (ktype) in pkey_verifykey2()
747 if (ktype) in pkey_verifykey2()
748 *ktype = PKEY_TYPE_EP11; in pkey_verifykey2()
[all …]
/linux-6.3-rc2/fs/sysfs/
A Dfile.c32 return kobj->ktype ? kobj->ktype->sysfs_ops : NULL; in sysfs_file_ops()
259 const struct sysfs_ops *sysfs_ops = kobj->ktype->sysfs_ops; in sysfs_add_file_mode_ns()
694 const struct kobj_type *ktype; in sysfs_change_owner() local
704 ktype = get_ktype(kobj); in sysfs_change_owner()
705 if (ktype) { in sysfs_change_owner()
710 error = sysfs_groups_change_owner(kobj, ktype->default_groups, in sysfs_change_owner()
/linux-6.3-rc2/drivers/firmware/
A Dqemu_fw_cfg.c524 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-6.3-rc2/Documentation/core-api/
A Dkobject.rst32 - 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, const 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, const struct kobj_type *ktype,
296 instead, it is associated with the ktype. So let us introduce struct
319 automatically created for any kobject that is registered with this ktype.
326 each other. There is no restriction that they be of the same ktype, but be
/linux-6.3-rc2/drivers/infiniband/ulp/rtrs/
A Drtrs-srv-sysfs.c24 static struct kobj_type ktype = { variable
276 err = kobject_init_and_add(&srv_path->kobj, &ktype, srv->kobj_paths, in rtrs_srv_create_path_files()
/linux-6.3-rc2/drivers/media/rc/
A Dimon.c1530 unsigned char *buf, u8 ktype) in imon_parse_press_type() argument
1552 else if (ktype == IMON_KEY_MCE) { in imon_parse_press_type()
1588 u8 ktype; in imon_incoming_packet() local
1597 ktype = IMON_KEY_PANEL; in imon_incoming_packet()
1603 ktype = IMON_KEY_IMON; in imon_incoming_packet()
1605 ktype = IMON_KEY_MCE; in imon_incoming_packet()
1608 ktype = IMON_KEY_IMON; in imon_incoming_packet()
1656 press_type = imon_parse_press_type(ictx, buf, ktype); in imon_incoming_packet()
1660 if (ktype != IMON_KEY_PANEL) { in imon_incoming_packet()
/linux-6.3-rc2/drivers/net/wireless/ath/carl9170/
A Dmac.c471 const u8 ktype, const u8 keyidx, const u8 *keydata, in carl9170_upload_key() argument
482 key.type = cpu_to_le16(ktype); in carl9170_upload_key()
A Dmain.c1165 u8 ktype; in carl9170_op_set_key() local
1194 ktype = AR9170_ENC_ALG_WEP64; in carl9170_op_set_key()
1197 ktype = AR9170_ENC_ALG_WEP128; in carl9170_op_set_key()
1200 ktype = AR9170_ENC_ALG_TKIP; in carl9170_op_set_key()
1203 ktype = AR9170_ENC_ALG_AESCCMP; in carl9170_op_set_key()
1232 ktype, 0, key->key, in carl9170_op_set_key()
1239 NULL, ktype, 1, in carl9170_op_set_key()
/linux-6.3-rc2/include/linux/ceph/
A Ddecode.h174 #define ceph_decode_skip_map(p, end, ktype, vtype, bad) \ argument
180 ceph_decode_skip_##ktype(p, end, bad); \
/linux-6.3-rc2/fs/ubifs/
A Dsysfs.c88 .kobj = {.ktype = &ubifs_ktype},
/linux-6.3-rc2/fs/ocfs2/cluster/
A Dmasklog.c153 .kobj = {.ktype = &mlog_ktype},
/linux-6.3-rc2/fs/ceph/
A Dmdsmap.c74 #define __decode_and_drop_map(p, end, ktype, vtype, bad) \ argument
79 need = (sizeof(ktype) + sizeof(vtype)) * n; \
/linux-6.3-rc2/fs/erofs/
A Dsysfs.c193 .kobj = {.ktype = &erofs_ktype},
/linux-6.3-rc2/drivers/base/
A Dbus.c221 const struct kobj_type *ktype = get_ktype(kobj); in bus_uevent_filter() local
223 if (ktype == &bus_ktype) in bus_uevent_filter()
865 bus_kobj->ktype = &bus_ktype; in bus_register()
/linux-6.3-rc2/kernel/
A Dparams.c932 const struct kobj_type *ktype = get_ktype(kobj); in uevent_filter() local
934 if (ktype == &module_ktype) in uevent_filter()

Completed in 49 milliseconds

12