/linux-6.15/io_uring/ |
D | net.c | 142 static void io_netmsg_iovec_free(struct io_async_msghdr *kmsg) in io_netmsg_iovec_free() argument 144 if (kmsg->vec.iovec) in io_netmsg_iovec_free() 145 io_vec_free(&kmsg->vec); in io_netmsg_iovec_free() 185 struct io_async_msghdr *kmsg) in io_mshot_prep_retry() argument 337 struct io_async_msghdr *kmsg = req->async_data; in io_send_setup() local 347 kmsg->msg.msg_name = NULL; in io_send_setup() 348 kmsg->msg.msg_namelen = 0; in io_send_setup() 349 kmsg->msg.msg_control = NULL; in io_send_setup() 350 kmsg->msg.msg_controllen = 0; in io_send_setup() 351 kmsg->msg.msg_ubuf = NULL; in io_send_setup() [all …]
|
/linux-6.15/net/ |
D | compat.c | 36 int __get_compat_msghdr(struct msghdr *kmsg, in __get_compat_msghdr() argument 42 kmsg->msg_flags = msg->msg_flags; in __get_compat_msghdr() 43 kmsg->msg_namelen = msg->msg_namelen; in __get_compat_msghdr() 46 kmsg->msg_namelen = 0; in __get_compat_msghdr() 48 if (kmsg->msg_namelen < 0) in __get_compat_msghdr() 51 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __get_compat_msghdr() 52 kmsg->msg_namelen = sizeof(struct sockaddr_storage); in __get_compat_msghdr() 54 kmsg->msg_control_is_user = true; in __get_compat_msghdr() 55 kmsg->msg_get_inq = 0; in __get_compat_msghdr() 56 kmsg->msg_control_user = compat_ptr(msg->msg_control); in __get_compat_msghdr() [all …]
|
D | socket.c | 2442 int __copy_msghdr(struct msghdr *kmsg, in __copy_msghdr() argument 2448 kmsg->msg_control_is_user = true; in __copy_msghdr() 2449 kmsg->msg_get_inq = 0; in __copy_msghdr() 2450 kmsg->msg_control_user = msg->msg_control; in __copy_msghdr() 2451 kmsg->msg_controllen = msg->msg_controllen; in __copy_msghdr() 2452 kmsg->msg_flags = msg->msg_flags; in __copy_msghdr() 2454 kmsg->msg_namelen = msg->msg_namelen; in __copy_msghdr() 2456 kmsg->msg_namelen = 0; in __copy_msghdr() 2458 if (kmsg->msg_namelen < 0) in __copy_msghdr() 2461 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr() [all …]
|
/linux-6.15/tools/testing/selftests/livepatch/ |
D | test-livepatch.sh | 60 grep 'live patched' /proc/cmdline > /dev/kmsg 61 grep 'live patched' /proc/meminfo > /dev/kmsg 65 grep 'live patched' /proc/cmdline > /dev/kmsg 66 grep 'live patched' /proc/meminfo > /dev/kmsg 71 grep 'live patched' /proc/cmdline > /dev/kmsg 72 grep 'live patched' /proc/meminfo > /dev/kmsg 77 grep 'live patched' /proc/cmdline > /dev/kmsg 78 grep 'live patched' /proc/meminfo > /dev/kmsg 124 grep 'live patched' /proc/cmdline > /dev/kmsg 125 grep 'live patched' /proc/meminfo > /dev/kmsg [all …]
|
D | functions.sh | 21 echo "$1" > /dev/kmsg 113 echo "livepatch: $err" | sed 's#/proc/sys/kernel/#kernel.#' > /dev/kmsg 120 echo "livepatch: kernel.ftrace_enabled = $result" > /dev/kmsg
|
/linux-6.15/drivers/gpu/drm/ |
D | drm_panic.c | 43 "Choose what will be displayed by drm_panic, 'user' or 'kmsg' [default=" 350 * Draw one line of kmsg, and handle wrapping if it won't fit in the screen width. 383 * Draw the kmsg buffer to the screen, starting from the youngest message at the bottom, 435 * 1) kmsg messages are dumped in buffer1 436 * 2) kmsg is zlib-compressed into buffer2 437 * 3) compressed kmsg is encoded as QR-code Numeric stream in buffer1 442 * Typically, ~7500 bytes of kmsg, are compressed into 2800 bytes, which fits in 445 * If CONFIG_DRM_PANIC_SCREEN_QR_CODE_URL is not set, the kmsg data will be put 447 * 1) kmsg messages are dumped in buffer1 448 * 2) kmsg message is encoded as byte stream in buffer2 [all …]
|
D | Kconfig | 149 the user to reboot the system, or "kmsg" which will display the last 150 lines of kmsg. 161 code. The QR code will contain the last lines of kmsg and other debug 171 the QR code will contain the URL and the kmsg compressed with zlib as 172 a URL parameter. If it's empty, the QR code will contain the kmsg as 174 There is a demo code in javascript, to decode and uncompress the kmsg
|
/linux-6.15/Documentation/ABI/testing/ |
D | dev-kmsg | 1 What: /dev/kmsg 5 Description: The /dev/kmsg character device node provides userspace access 116 the console, /proc/kmsg or the syslog() syscall. 121 disabled and /dev/kmsg output will contain more fragments. If 124 may be removed entirely and /dev/kmsg users are recommended to
|
/linux-6.15/Documentation/devicetree/bindings/reserved-memory/ |
D | ramoops.yaml | 46 description: maximum size in bytes of each kmsg dump 81 If present, sets maximum type of kmsg dump reasons to store. 82 This can be set to INT_MAX to store all kmsg dumps. 83 See include/linux/kmsg_dump.h KMSG_DUMP_* for other kmsg dump reason values.
|
/linux-6.15/tools/testing/selftests/devices/error_logs/ |
D | test_device_error_logs.py | 25 kmsg = "/dev/kmsg" variable 41 with open(kmsg) as f:
|
/linux-6.15/fs/pstore/ |
D | Kconfig | 135 int "Size in Kbytes of kmsg dump log to store" 139 This just sets size of kmsg dump (oops, panic, etc) log for 146 int "Maximum kmsg dump reason to store" 150 The maximum reason for kmsg dumps to store. The default is
|
D | zone.c | 42 * struct psz_kmsg_header - kmsg dump-specific header to flush to storage 44 * @magic: magic num for kmsg dump header 45 * @time: kmsg dump trigger time 47 * @counter: kmsg dump counter 48 * @reason: the kmsg dump reason (e.g. oops, panic, etc) 51 * This is a sub-header for a kmsg dump, trailing after &psz_buffer. 92 * @kpszs: kmsg dump storage zones 97 * @kmsg_read_cnt: counter of total read kmsg dumps 98 * @kmsg_write_cnt: counter of total kmsg dump writes 407 pr_debug("no valid data in kmsg dump zone %lu\n", i); in psz_kmsg_recover_meta() [all …]
|
/linux-6.15/include/linux/ |
D | pstore_blk.h | 31 * @max_reason: Maximum kmsg dump reason to store to block device 32 * @kmsg_size: Total size of for kmsg dumps
|
/linux-6.15/tools/testing/selftests/drivers/net/ |
D | netcons_fragmented_msg.sh | 24 # The content of kmsg will be save to the following file 105 echo "${MSG}: ${TARGET}" > /dev/kmsg 119 echo "${MSG}: ${TARGET}" > /dev/kmsg
|
D | netcons_basic.sh | 26 # The content of kmsg will be save to the following file 46 echo "${MSG}: ${TARGET}" > /dev/kmsg
|
/linux-6.15/fs/proc/ |
D | kmsg.c | 3 * linux/fs/proc/kmsg.c 60 proc_create("kmsg", S_IRUSR, NULL, &kmsg_proc_ops); in proc_kmsg_init()
|
D | Makefile | 34 proc-$(CONFIG_PRINTK) += kmsg.o
|
/linux-6.15/Documentation/networking/ |
D | netconsole.rst | 202 echo "This is a message" > /dev/kmsg 226 echo "This is a message" > /dev/kmsg 268 echo "This is a message" > /dev/kmsg 289 echo "This is a message" > /dev/kmsg 320 echo "This is a message" > /dev/kmsg 353 following format which is the same as /dev/kmsg::
|
/linux-6.15/drivers/hv/ |
D | hv_common.c | 157 * sysctl option to allow the user to control whether kmsg data should be 186 * kmsg dumper is used [see hv_kmsg_dump()], which provides more 212 * be calling hv_kmsg_dump() later with kmsg data, don't do the in hv_die_panic_notify_crash() 222 * Callback from kmsg_dump. Grab as much as possible from the end of the kmsg 291 pr_err("Hyper-V: kmsg dump register error 0x%x\n", ret); in hv_kmsg_dump_register() 337 * Hyper-V expects to get crash register data or kmsg when in hv_common_init() 361 * Register for panic kmsg callback only if the right in hv_common_init()
|
/linux-6.15/tools/testing/selftests/ |
D | run_kselftest.sh | 103 [ -w /dev/kmsg ] && echo "kselftest: Running tests in $collection" >> /dev/kmsg
|
/linux-6.15/net/batman-adv/ |
D | log.h | 116 * batadv_info() - Store message in debug buffer and print it to kmsg buffer 130 * batadv_err() - Store error in debug buffer and print it to kmsg buffer
|
/linux-6.15/tools/testing/selftests/wireguard/qemu/ |
D | init.c | 134 file = fopen("/proc/kmsg", "r"); in kmod_selftests() 136 panic("fopen(kmsg)"); in kmod_selftests() 138 panic("fcntl(kmsg, nonblock)"); in kmod_selftests()
|
/linux-6.15/arch/powerpc/platforms/powernv/ |
D | opal-kmsg.c | 3 * kmsg dumper that ensures the OPAL console fully flushes panic messages
|
/linux-6.15/arch/um/kernel/ |
D | kmsg_dump.c | 23 * the kmsg buffer to stdout. in kmsg_dumper_stdout()
|
/linux-6.15/include/net/ |
D | compat.h | 49 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
|