All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Florian Bezdeka <florian.bezdeka@siemens.com>, xenomai@xenomai.org
Subject: Re: [PATCH v5 1/3] y2038: cobalt/posix/io: Adding recvmmsg64
Date: Wed, 6 Oct 2021 17:27:07 +0200	[thread overview]
Message-ID: <21a30bf8-284c-c2ba-c331-8d4405f1c0dc@siemens.com> (raw)
In-Reply-To: <20211006135415.223689-2-florian.bezdeka@siemens.com>

On 06.10.21 15:54, Florian Bezdeka wrote:
> From: Song Chen <chensong_2000@189.cn>
> 
> Add a syscall specific for recvmmsg64 with 64bit time_t.
> 
> Signed-off-by: Song Chen <chensong_2000@189.cn>
> [Florian: Fixed some style issues]
> [Florian: Added Song's Signed-off back (malformed patch received)]
> [Florian: Fixed tracing infrastructure]
> Signed-off-by: Florian Bezdeka <florian.bezdeka@siemens.com>
> ---
>  include/cobalt/kernel/rtdm/fd.h    |  5 +++++
>  include/cobalt/uapi/syscall.h      |  1 +
>  kernel/cobalt/posix/io.c           |  9 +++++++++
>  kernel/cobalt/posix/io.h           |  5 +++++
>  kernel/cobalt/posix/syscall32.c    |  9 +++++++++
>  kernel/cobalt/posix/syscall32.h    |  6 ++++++
>  kernel/cobalt/rtdm/fd.c            | 21 ++++++++++++++++++++-
>  kernel/cobalt/trace/cobalt-posix.h |  3 ++-
>  8 files changed, 57 insertions(+), 2 deletions(-)
> 
> diff --git a/include/cobalt/kernel/rtdm/fd.h b/include/cobalt/kernel/rtdm/fd.h
> index 37a09c43e..058a9c638 100644
> --- a/include/cobalt/kernel/rtdm/fd.h
> +++ b/include/cobalt/kernel/rtdm/fd.h
> @@ -382,6 +382,11 @@ int __rtdm_fd_recvmmsg(int ufd, void __user *u_msgvec, unsigned int vlen,
>  		       int (*put_mmsg)(void __user **u_mmsg_p, const struct mmsghdr *mmsg),
>  		       int (*get_timespec)(struct timespec64 *ts, const void __user *u_ts));
>  
> +int __rtdm_fd_recvmmsg64(int ufd, void __user *u_msgvec, unsigned int vlen,
> +			 unsigned int flags, void __user *u_timeout,
> +			 int (*get_mmsg)(struct mmsghdr *mmsg, void __user *u_mmsg),
> +			 int (*put_mmsg)(void __user **u_mmsg_p, const struct mmsghdr *mmsg));
> +
>  ssize_t rtdm_fd_sendmsg(int ufd, const struct user_msghdr *msg,
>  			int flags);
>  
> diff --git a/include/cobalt/uapi/syscall.h b/include/cobalt/uapi/syscall.h
> index 16edce15d..1523ddd2d 100644
> --- a/include/cobalt/uapi/syscall.h
> +++ b/include/cobalt/uapi/syscall.h
> @@ -134,6 +134,7 @@
>  #define sc_cobalt_sigtimedwait64		111
>  #define sc_cobalt_monitor_wait64		112
>  #define sc_cobalt_event_wait64			113
> +#define sc_cobalt_recvmmsg64			114
>  
>  #define __NR_COBALT_SYSCALLS			128 /* Power of 2 */
>  
> diff --git a/kernel/cobalt/posix/io.c b/kernel/cobalt/posix/io.c
> index 0c17f55bf..0f9c963ad 100644
> --- a/kernel/cobalt/posix/io.c
> +++ b/kernel/cobalt/posix/io.c
> @@ -26,6 +26,7 @@
>  #include "internal.h"
>  #include "clock.h"
>  #include "io.h"
> +#include <cobalt/kernel/time.h>

Would be nicer to move this up to the other "<cobat/...>" includes.

I will likely fix this up myself.

Jan

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


  reply	other threads:[~2021-10-06 15:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-06 13:54 [PATCH v5 0/3] y2038: Adding recvmmsg64 Florian Bezdeka
2021-10-06 13:54 ` [PATCH v5 1/3] y2038: cobalt/posix/io: " Florian Bezdeka
2021-10-06 15:27   ` Jan Kiszka [this message]
2021-10-06 13:54 ` [PATCH v5 2/3] y2038: lib/cobalt/rtdm: dispatch recvmmg Florian Bezdeka
2021-10-06 13:54 ` [PATCH v5 3/3] y2038: testsuite/smokey/y2038: testcase for recvmmsg64 Florian Bezdeka
2021-10-06 15:31 ` [PATCH v5 0/3] y2038: Adding recvmmsg64 Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21a30bf8-284c-c2ba-c331-8d4405f1c0dc@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=florian.bezdeka@siemens.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.