/linux/io_uring/ |
H A D | net.c | 128 static void io_netmsg_iovec_free(struct io_async_msghdr *kmsg) in io_netmsg_iovec_free() argument 130 if (kmsg->free_iov) { in io_netmsg_iovec_free() 131 kfree(kmsg->free_iov); in io_netmsg_iovec_free() 132 kmsg->free_iov_nr = 0; in io_netmsg_iovec_free() 133 kmsg->free_iov = NULL; in io_netmsg_iovec_free() 171 static void io_net_vec_assign(struct io_kiocb *req, struct io_async_msghdr *kmsg, in io_net_vec_assign() argument 176 kmsg->free_iov_nr = kmsg->msg.msg_iter.nr_segs; in io_net_vec_assign() 177 if (kmsg->free_iov) in io_net_vec_assign() 178 kfree(kmsg->free_iov); in io_net_vec_assign() 179 kmsg->free_iov = iov; in io_net_vec_assign() [all …]
|
/linux/net/ |
H A 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 …]
|
H A D | socket.c | 2449 int __copy_msghdr(struct msghdr *kmsg, in __copy_msghdr() argument 2455 kmsg->msg_control_is_user = true; in __copy_msghdr() 2456 kmsg->msg_get_inq = 0; in __copy_msghdr() 2457 kmsg->msg_control_user = msg->msg_control; in __copy_msghdr() 2458 kmsg->msg_controllen = msg->msg_controllen; in __copy_msghdr() 2459 kmsg->msg_flags = msg->msg_flags; in __copy_msghdr() 2461 kmsg->msg_namelen = msg->msg_namelen; in __copy_msghdr() 2463 kmsg->msg_namelen = 0; in __copy_msghdr() 2465 if (kmsg->msg_namelen < 0) in __copy_msghdr() 2468 if (kmsg->msg_namelen > sizeof(struct sockaddr_storage)) in __copy_msghdr() [all …]
|
/linux/tools/testing/selftests/livepatch/ |
H A 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 …]
|
H A D | functions.sh | 20 echo "$1" > /dev/kmsg 98 echo "livepatch: $err" | sed 's#/proc/sys/kernel/#kernel.#' > /dev/kmsg 105 echo "livepatch: kernel.ftrace_enabled = $result" > /dev/kmsg
|
/linux/tools/testing/selftests/devices/error_logs/ |
H A D | test_device_error_logs.py | 25 kmsg = "/dev/kmsg" variable 41 with open(kmsg) as f:
|
/linux/drivers/gpu/drm/ |
H A D | drm_panic.c | 499 char *kmsg; in drm_panic_get_qr_code_url() local 514 kmsg = qrbuf1; in drm_panic_get_qr_code_url() 521 stream.next_in = kmsg; in drm_panic_get_qr_code_url() 536 kmsg = strchr(kmsg, '\n'); in drm_panic_get_qr_code_url() 537 if (!kmsg) in drm_panic_get_qr_code_url() 540 kmsg += 1; in drm_panic_get_qr_code_url() 541 kmsg_len = strlen(kmsg); in drm_panic_get_qr_code_url()
|
H A 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/Documentation/ABI/testing/ |
H A 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/fs/pstore/ |
H A 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
|
/linux/fs/proc/ |
H A D | Makefile | 34 proc-$(CONFIG_PRINTK) += kmsg.o
|
/linux/include/net/ |
H A D | compat.h | 49 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | printk-basics.rst | 26 所有的printk()消息都会被打印到内核日志缓冲区,这是一个通过/dev/kmsg输出到用户空间的环
|
/linux/arch/powerpc/platforms/powernv/ |
H A D | Makefile | 15 obj-y += opal-kmsg.o opal-powercap.o opal-psr.o opal-sensor-groups.o
|
/linux/Documentation/core-api/ |
H A D | printk-basics.rst | 20 buffer exported to userspace through /dev/kmsg. The usual way to read it is
|
/linux/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 427 extern int __copy_msghdr(struct msghdr *kmsg,
|
/linux/include/linux/ |
H A D | socket.h | 429 extern int __copy_msghdr(struct msghdr *kmsg,
|
/linux/Documentation/admin-guide/ |
H A D | ramoops.rst | 42 Limiting which kinds of kmsg dumps are stored can be controlled via
|
H A D | pstore-blk.rst | 145 Limiting which kinds of kmsg dumps are stored can be controlled via
|
H A D | kernel-parameters.txt | 885 from /proc/kmsg. 935 notifiers and dumping kmsg. This option increases 5021 Control writing to /dev/kmsg. 5022 on - unlimited logging to /dev/kmsg from userspace 5023 off - logging to /dev/kmsg disabled
|
H A D | devices.txt | 16 11 = /dev/kmsg Writes to this come out as printk's, reads
|
/linux/Documentation/admin-guide/sysctl/ |
H A D | kernel.rst | 464 Controls whether the panic kmsg data should be reported to Hyper-V. 467 0 Do not report panic kmsg data. 468 1 Report the panic kmsg data. This is the default behavior. 1121 Control the logging to ``/dev/kmsg`` from userspace: 1125 on unlimited logging to /dev/kmsg from userspace 1126 off logging to /dev/kmsg disabled
|
/linux/init/ |
H A D | Kconfig | 812 /dev/kmsg, as it permits auditing the printk formats present in a
|
/linux/lib/ |
H A D | Kconfig.debug | 15 to /dev/kmsg. This flag just specifies if the timestamp should
|