Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 54 files:

Smatch caller information:

drivers/pci/slot.c pci_slot_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 5061993312785661952
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 88,4096-ptr_max
BUF_SIZE 0 name 6
STR_LEN 0 name 5
TERMINATED 0 name 1

drivers/platform/x86/lenovo/think-lmi.c tlmi_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/x86/lenovo/think-lmi.c tlmi_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1405081284794593280
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 15
STR_LEN 0 name 14
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_create_kset() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1-u64max
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 0-s32max
BUF_SIZE 0 name 0-s32max
CAPPED_DATA 0 name 1
DATA_SOURCE 0 name $0
STR_LEN 0 name (-1),4
STR_LEN 0 name (-1),4
RX_PATH
TASK_NOT_RUNNING

net/sunrpc/sysfs.c rpc_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 8932540784450555904
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

mm/slub.c slab_kset_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 8731173092123881472
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 5
STR_LEN 0 name 4
TERMINATED 0 name 1
LOCK2 global &slab_mutex

fs/ocfs2/super.c ocfs2_fill_super() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 32
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &fc->uapi_mutex

drivers/firmware/efi/esrt.c esrt_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7975134343185281024
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
PARAM_VALUE 2 parent_kobj->entry.next 4096-ptr_max
PARAM_VALUE 2 parent_kobj->entry.next->next 4096-ptr_max
PARAM_VALUE 2 parent_kobj->entry.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_kobj->entry.prev->prev 4096-ptr_max
PARAM_VALUE 2 parent_kobj->kref.refcount.refs.counter 1
PARAM_VALUE 2 parent_kobj->kset 0,4096-ptr_max
PARAM_VALUE 2 parent_kobj->kset->list.prev 4096-ptr_max
PARAM_VALUE 2 parent_kobj->kset->list.prev->next 4096-ptr_max
PARAM_VALUE 2 parent_kobj->kset->list.prev->next->next 4096-ptr_max
PARAM_VALUE 2 parent_kobj->kset->list_lock.rlock.dep_map->name 0-255
PARAM_VALUE 2 parent_kobj->ktype 1915817945436012544
PARAM_VALUE 2 parent_kobj->name 4096-ptr_max
PARAM_VALUE 2 parent_kobj->sd 4096-ptr_max
PARAM_VALUE 2 parent_kobj->sd->__parent 0
PARAM_VALUE 2 parent_kobj->state_add_uevent_sent 0
PARAM_VALUE 2 parent_kobj->state_in_sysfs 1
PARAM_VALUE 2 parent_kobj->state_initialized 1
PARAM_VALUE 2 parent_kobj->state_remove_uevent_sent 0
BUF_SIZE 0 name 8
BUF_SIZE 2 parent_kobj 248
DATA_SOURCE 2 parent_kobj r kobject_create_and_add
STR_LEN 0 name 7
TERMINATED 0 name 1

drivers/hv/vmbus_drv.c vmbus_device_register() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 5383953001091522560
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 9
BUF_SIZE 2 parent_kobj 248
STR_LEN 0 name 8
TERMINATED 0 name 1
HALF_LOCKED2 &pool->lock

drivers/base/class.c classes_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7194900409976692736
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 0
BUF_SIZE 0 name 6
STR_LEN 0 name 5
TERMINATED 0 name 1

samples/kobject/kset-example.c example_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7952011865882537984
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 13
STR_LEN 0 name 12
TERMINATED 0 name 1

drivers/firmware/edd.c edd_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 2436029027489787904
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 4
STR_LEN 0 name 3
TERMINATED 0 name 1

fs/ocfs2/stackglue.c ocfs2_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 9222220988261351424
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 6
STR_LEN 0 name 5
TERMINATED 0 name 1

drivers/firmware/qemu_fw_cfg.c fw_cfg_sysfs_probe() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 4584882965254230016
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 8
STR_LEN 0 name 7
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING

net/core/net-sysfs.c register_queue_kobjects() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 4698464547586260992
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

drivers/platform/x86/lenovo/wmi-other.c lwmi_om_fw_attr_add() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &component_mutex

drivers/platform/x86/samsung-galaxybook.c galaxybook_fw_attrs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/base/bus.c bus_register() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3612444591515684864
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
PARAM_VALUE 2 parent_kobj->kset 0,4096-ptr_max
PARAM_VALUE 2 parent_kobj->ktype 614088712811503616
PARAM_VALUE 2 parent_kobj->name 1-u64max
BUF_SIZE 0 name 8
BUF_SIZE 2 parent_kobj 248
BUF_SIZE 2 parent_kobj->ktype 48
STR_LEN 0 name 7
TERMINATED 0 name 1
HALF_LOCKED2 global &pmus_lock

drivers/base/bus.c bus_register() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7244926929444880384
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 8
BUF_SIZE 2 parent_kobj 248
STR_LEN 0 name 7
TERMINATED 0 name 1
HALF_LOCKED2 global &pmus_lock

drivers/base/bus.c buses_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7585285028109520896
PARAM_VALUE 1 uevent_ops 522020487372210176
PARAM_VALUE 2 parent_kobj 0
BUF_SIZE 0 name 4
STR_LEN 0 name 3
TERMINATED 0 name 1

drivers/base/bus.c buses_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 4539742112066576384
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 88,4096-ptr_max
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

drivers/platform/x86/dell/dell-wmi-sysman/sysman.c sysman_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1

drivers/platform/x86/dell/dell-wmi-sysman/sysman.c sysman_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1405081284794593280
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 15
STR_LEN 0 name 14
TERMINATED 0 name 1

drivers/platform/x86/asus-armoury.c asus_fw_attr_add() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1

crypto/pcrypt.c pcrypt_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3273859763330879488
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

drivers/base/core.c devices_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3612444591515684864
PARAM_VALUE 1 uevent_ops 6627140260523298816
PARAM_VALUE 2 parent_kobj 0
BUF_SIZE 0 name 8
STR_LEN 0 name 7
TERMINATED 0 name 1

fs/btrfs/sysfs.c btrfs_init_sysfs() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1286720767352492032
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 6
STR_LEN 0 name 5
TERMINATED 0 name 1

drivers/firmware/memmap.c add_sysfs_fw_map_entry() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 4885196402740117504
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

fs/fuse/virtio_fs.c virtio_fs_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 4588527470130335744
PARAM_VALUE 1 uevent_ops 6477713344104165376
BUF_SIZE 0 name 9
STR_LEN 0 name 8
TERMINATED 0 name 1

drivers/base/swnode.c software_node_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3936743361674543104
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 15
STR_LEN 0 name 14
TERMINATED 0 name 1

fs/nilfs2/sysfs.c nilfs_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 9212271235050008576
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

drivers/staging/greybus/audio_manager.c manager_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 5090279639908872192
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 17
STR_LEN 0 name 16
TERMINATED 0 name 1

drivers/platform/x86/uv_sysfs.c pci_topology_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3869294021572689920
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 9
STR_LEN 0 name 8
TERMINATED 0 name 1

drivers/platform/x86/uv_sysfs.c uv_hubs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1422474400879177728
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 5
STR_LEN 0 name 4
TERMINATED 0 name 1

drivers/of/base.c of_core_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7358843814362755072
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1
LOCK2 global &of_mutex

fs/ocfs2/cluster/sys.c o2cb_sys_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 6446349246776975360
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 5
STR_LEN 0 name 4
TERMINATED 0 name 1

drivers/iommu/iommu.c iommu_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1324025355686514688
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 13
STR_LEN 0 name 12
TERMINATED 0 name 1

drivers/vfio/mdev/mdev_sysfs.c parent_create_sysfs_files() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 8133300592619470848
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 0
BUF_SIZE 0 name 21
STR_LEN 0 name 20
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &intel_gvt_mutex

fs/dlm/lockspace.c dlm_lockspace_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7842909004994883584
PARAM_VALUE 1 uevent_ops 2154824862372823040
BUF_SIZE 0 name 4
STR_LEN 0 name 3
TERMINATED 0 name 1

fs/xfs/xfs_super.c init_xfs_fs() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 8682572442311069696
PARAM_VALUE 1 uevent_ops 0
BUF_SIZE 0 name 4
STR_LEN 0 name 3
TERMINATED 0 name 1

drivers/misc/issei/cdev.c issei_register() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 5018943083506016256
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1
RX_PATH
TASK_NOT_RUNNING

drivers/platform/x86/hp/hp-bioscfg/bioscfg.c hp_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 143774853440774144
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 11
STR_LEN 0 name 10
TERMINATED 0 name 1

drivers/platform/x86/hp/hp-bioscfg/bioscfg.c hp_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 1405081284794593280
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 15
STR_LEN 0 name 14
TERMINATED 0 name 1

drivers/firmware/dmi-sysfs.c dmi_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 7975134343185281024
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 1-u64max
BUF_SIZE 0 name 8
STR_LEN 0 name 7
TERMINATED 0 name 1

fs/gfs2/sys.c gfs2_sys_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 3207237695121874944
PARAM_VALUE 1 uevent_ops 4836942079350849536
BUF_SIZE 0 name 5
STR_LEN 0 name 4
TERMINATED 0 name 1

kernel/params.c param_sysfs_init() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 6500139109238472704
PARAM_VALUE 1 uevent_ops 8290393954082062336
PARAM_VALUE 2 parent_kobj 0
BUF_SIZE 0 name 7
STR_LEN 0 name 6
TERMINATED 0 name 1

arch/x86/platform/efi/runtime-map.c add_sysfs_runtime_map_entry() -> kset_create_and_add()

Type Parameter Key Value
PARAM_VALUE 0 name 6129503804129845248
PARAM_VALUE 1 uevent_ops 0
PARAM_VALUE 2 parent_kobj 4096-ptr_max
BUF_SIZE 0 name 12
DATA_SOURCE 2 parent_kobj $0
STR_LEN 0 name 11
TERMINATED 0 name 1