Defined in 7 files as a prototype:
Defined in 1 files as a macro:
Defined in 10 files as a function:
- arch/alpha/boot/stdio.c, line 8 (as a function)
- arch/arm/boot/compressed/string.c, line 69 (as a function)
- arch/m68k/include/asm/string.h, line 9 (as a function)
- arch/powerpc/boot/stdio.c, line 11 (as a function)
- arch/s390/include/asm/string.h, line 186 (as a function)
- arch/s390/lib/string.c, line 62 (as a function)
- arch/x86/boot/string.c, line 80 (as a function)
- arch/x86/lib/string_32.c, line 217 (as a function)
- include/linux/string.h, line 308 (as a function)
- lib/string.c, line 540 (as a function)
Documented in 1 files:
Referenced in 140 files:
- arch/alpha/boot/stdio.c, line 204
- arch/alpha/kernel/osf_sys.c, line 571
- arch/arm64/lib/strnlen.S, 3 times
- arch/m68k/kernel/uboot.c, line 95
- arch/powerpc/boot/devtree.c, line 344
- arch/powerpc/boot/stdio.c, line 240
- arch/powerpc/include/asm/code-patching.h, line 142
- arch/powerpc/kernel/nvram_64.c, line 902
- arch/powerpc/platforms/ps3/repository.c, line 94
- arch/s390/lib/string.c, line 66
- arch/s390/lib/uaccess.c, line 437
- arch/um/kernel/skas/uaccess.c, 5 times
- arch/x86/boot/printf.c, line 207
- arch/x86/lib/string_32.c, line 235
- crypto/crypto_user_base.c, line 25
- crypto/crypto_user_stat.c, line 22
- drivers/ata/libata-core.c, line 1155
- drivers/block/ps3disk.c, line 345
- drivers/char/tlclk.c, 18 times
- drivers/firmware/tegra/bpmp-debugfs.c, line 60
- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c, 2 times
- drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c, line 189
- drivers/gpu/drm/drm_dp_cec.c, line 165
- drivers/gpu/drm/drm_dp_helper.c, line 1329
- drivers/gpu/drm/omapdrm/dss/omapdss-boot-init.c, line 92
- drivers/hid/hid-wiimote-core.c, line 1693
- drivers/hid/hid-wiimote-modules.c, line 1837
- drivers/ide/siimage.c, line 608
- drivers/infiniband/core/cma_configfs.c, 2 times
- drivers/infiniband/hw/hfi1/sdma.c, 2 times
- drivers/input/keyboard/omap-keypad.c, line 172
- drivers/input/misc/ims-pcu.c, line 1072
- drivers/iommu/dmar.c, line 442
- drivers/misc/eeprom/idt_89hpesx.c, line 977
- drivers/mtd/devices/block2mtd.c, line 390
- drivers/mtd/devices/phram.c, line 225
- drivers/mtd/ubi/block.c, line 112
- drivers/mtd/ubi/build.c, line 1367
- drivers/mtd/ubi/cdev.c, line 638
- drivers/mtd/ubi/debug.c, 2 times
- drivers/mtd/ubi/kapi.c, line 244
- drivers/mtd/ubi/vmt.c, line 706
- drivers/mtd/ubi/vtbl.c, line 244
- drivers/net/ethernet/cavium/liquidio/octeon_console.c, 2 times
- drivers/net/ethernet/netronome/nfp/nfp_net_debugdump.c, 4 times
- drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c, 4 times
- drivers/net/ethernet/toshiba/ps3_gelic_wireless.c, 2 times
- drivers/net/netconsole.c, 10 times
- drivers/net/wireless/ath/carl9170/fw.c, line 97
- drivers/net/wireless/broadcom/brcm80211/brcmfmac/firmware.c, line 725
- drivers/net/wireless/intel/ipw2x00/ipw2100.c, 2 times
- drivers/net/wireless/intel/ipw2x00/ipw2200.c, 7 times
- drivers/net/wireless/intel/ipw2x00/libipw_module.c, line 240
- drivers/net/wireless/intel/iwlegacy/3945-mac.c, 2 times
- drivers/net/wireless/intel/iwlegacy/4965-mac.c, line 4572
- drivers/net/wireless/intersil/p54/fwio.c, line 76
- drivers/nvme/host/core.c, line 2456
- drivers/nvme/host/fc.c, 2 times
- drivers/nvme/target/fc.c, 2 times
- drivers/of/overlay.c, line 217
- drivers/of/property.c, 3 times
- drivers/platform/x86/classmate-laptop.c, 3 times
- drivers/power/supply/test_power.c, line 300
- drivers/remoteproc/remoteproc_debugfs.c, line 55
- drivers/s390/char/vmlogrdr.c, line 223
- drivers/scsi/fcoe/fcoe.c, line 2797
- drivers/scsi/libfc/fc_lport.c, 2 times
- drivers/scsi/libsas/sas_scsi_host.c, line 941
- drivers/scsi/lpfc/lpfc_attr.c, 4 times
- drivers/scsi/lpfc/lpfc_ct.c, 15 times
- drivers/scsi/lpfc/lpfc_debugfs.c, 6 times
- drivers/scsi/scsi_devinfo.c, 2 times
- drivers/staging/comedi/drivers/ni_routes.c, 2 times
- drivers/staging/greybus/fw-download.c, line 242
- drivers/staging/media/ipu3/ipu3-css-fw.c, line 154
- drivers/target/target_core_spc.c, 4 times
- drivers/usb/gadget/function/f_fs.c, line 2662
- drivers/usb/usbip/stub_main.c, line 254
- drivers/video/fbdev/omap2/omapfb/dss/omapdss-boot-init.c, line 92
- drivers/visorbus/visorchipset.c, line 570
- fs/afs/dir.c, line 384
- fs/bfs/dir.c, line 55
- fs/btrfs/ioctl.c, 2 times
- fs/cifs/cifs_unicode.c, line 363
- fs/cifs/cifssmb.c, line 6431
- fs/cifs/connect.c, 6 times
- fs/cifs/dir.c, 2 times
- fs/cifs/readdir.c, line 420
- fs/cifs/sess.c, 5 times
- fs/crypto/fname.c, line 122
- fs/erofs/dir.c, line 43
- fs/ext4/xattr.c, line 193
- fs/fuse/xattr.c, line 95
- fs/jffs2/gc.c, line 671
- fs/jffs2/scan.c, line 1069
- fs/jffs2/summary.c, line 445
- fs/jffs2/write.c, line 226
- fs/minix/dir.c, line 121
- fs/nfs/dir.c, line 462
- fs/nfs/nfs4idmap.c, line 701
- fs/ocfs2/stackglue.c, line 574
- fs/ocfs2/super.c, line 1379
- fs/ocfs2/symlink.c, line 75
- fs/omfs/dir.c, line 361
- fs/overlayfs/copy_up.c, line 68
- fs/overlayfs/inode.c, line 406
- fs/proc/base.c, line 233
- fs/qnx4/dir.c, line 51
- fs/romfs/super.c, line 521
- fs/sysv/dir.c, line 96
- fs/ubifs/replay.c, line 488
- fs/xfs/scrub/symlink.c, 2 times
- fs/xfs/xfs_ioctl.c, line 2057
- include/acpi/actypes.h, line 532
- include/asm-generic/uaccess.h, line 244
- include/linux/string.h, 3 times
- include/scsi/fc_encode.h, 4 times
- lib/string.c, line 548
- lib/test_hexdump.c, line 201
- lib/test_kasan.c, line 659
- mm/util.c, 3 times
- net/bluetooth/hci_event.c, line 2851
- net/core/dev.c, 2 times
- net/core/devlink.c, line 3242
- net/netfilter/ipvs/ip_vs_ctl.c, line 2487
- net/netfilter/ipvs/ip_vs_sync.c, line 662
- net/netfilter/x_tables.c, 6 times
- net/netfilter/xt_CT.c, 2 times
- net/netfilter/xt_IDLETIMER.c, line 196
- net/netfilter/xt_bpf.c, line 57
- net/netrom/nr_route.c, line 647
- net/rds/connection.c, line 275
- scripts/dtc/checks.c, 2 times
- scripts/dtc/libfdt/fdt_ro.c, 3 times
- security/apparmor/apparmorfs.c, 3 times
- security/tomoyo/network.c, line 560
- sound/core/control.c, 2 times
- sound/soc/soc-topology.c, 15 times
- sound/soc/sof/topology.c, 2 times
- tools/testing/selftests/bpf/test_verifier_log.c, line 99