Home
last modified time | relevance | path

Searched refs:kmsg (Results 1 – 24 of 24) sorted by relevance

/linux/io_uring/
H A Dnet.c128 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 Dcompat.c36 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 Dsocket.c2449 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 Dtest-livepatch.sh60 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 Dfunctions.sh20 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 Dtest_device_error_logs.py25 kmsg = "/dev/kmsg" variable
41 with open(kmsg) as f:
/linux/drivers/gpu/drm/
H A Ddrm_panic.c499 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 DKconfig149 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 Ddev-kmsg1 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 DKconfig135 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 DMakefile34 proc-$(CONFIG_PRINTK) += kmsg.o
/linux/include/net/
H A Dcompat.h49 int __get_compat_msghdr(struct msghdr *kmsg, struct compat_msghdr *msg,
/linux/Documentation/translations/zh_CN/core-api/
H A Dprintk-basics.rst26 所有的printk()消息都会被打印到内核日志缓冲区,这是一个通过/dev/kmsg输出到用户空间的环
/linux/arch/powerpc/platforms/powernv/
H A DMakefile15 obj-y += opal-kmsg.o opal-powercap.o opal-psr.o opal-sensor-groups.o
/linux/Documentation/core-api/
H A Dprintk-basics.rst20 buffer exported to userspace through /dev/kmsg. The usual way to read it is
/linux/tools/perf/trace/beauty/include/linux/
H A Dsocket.h427 extern int __copy_msghdr(struct msghdr *kmsg,
/linux/include/linux/
H A Dsocket.h429 extern int __copy_msghdr(struct msghdr *kmsg,
/linux/Documentation/admin-guide/
H A Dramoops.rst42 Limiting which kinds of kmsg dumps are stored can be controlled via
H A Dpstore-blk.rst145 Limiting which kinds of kmsg dumps are stored can be controlled via
H A Dkernel-parameters.txt885 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 Ddevices.txt16 11 = /dev/kmsg Writes to this come out as printk's, reads
/linux/Documentation/admin-guide/sysctl/
H A Dkernel.rst464 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 DKconfig812 /dev/kmsg, as it permits auditing the printk formats present in a
/linux/lib/
H A DKconfig.debug15 to /dev/kmsg. This flag just specifies if the timestamp should