All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] [florian/y2038] recvmmsg for timespec64
@ 2021-09-08  3:30 Song Chen
  0 siblings, 0 replies; only message in thread
From: Song Chen @ 2021-09-08  3:30 UTC (permalink / raw)
  To: florian.bezdeka, xenomai

This patch serial is to introdule a new sycall recvmmsg64 to support
64-bit time_t.

All the test cases have been tested and passed and resource is cleaned
up before leaving.

At beginning, i tried to initialize socket like this way:
	socket(AF_UNIX, SOCK_STREAM, 0);

However, it returns immediately in __rtdm_fd_recvmmsg, couldn't
get valid value from rtdm_fd_get.

I'm not familiar with this part, i guess it's supported in GPOS
instead of xenomai, then i turned to IPCPROTO_XDDP, it works. Any
suggestion about this part is welcomed.

---
v2:
1, adjust indentation, different files have different indentation, see
   ./kernel/cobalt/posix/io.h
   ./kernel/cobalt/posix/syscall32.h
   I followed the function definition around mine
2, remove duplicated helper get_timespec64_xeno
   get_timespec64 is defined in vanilla kernel, that's why suffix _xeno,
   but it still looks weired, it does nothing but just call
   cobalt_get_timespec64, so why not call cobalt_get_timespec64 directly
   with a little change of its definition.
4, rename variables
5, remove unnecessary branches
5, call smokey_check_errno

Song Chen (3):
  y2038: cobalt/posix/io: Adding recvmmsg64
  y2038: lib/cobalt/rtdm: dispatch recvmmg
  y2038: testsuite/smokey/y2038: testcase for recvmmsg64

 include/cobalt/kernel/time.h           |   6 +-
 include/cobalt/uapi/syscall.h          |   1 +
 kernel/cobalt/posix/io.c               |   9 +++
 kernel/cobalt/posix/io.h               |   5 ++
 kernel/cobalt/posix/syscall32.c        |  15 +++-
 kernel/cobalt/posix/syscall32.h        |   6 ++
 kernel/cobalt/rtdm/fd.c                |   2 +-
 kernel/cobalt/time.c                   |   6 +-
 lib/cobalt/rtdm.c                      |   5 ++
 testsuite/smokey/y2038/syscall-tests.c | 132 +++++++++++++++++++++++++++++++++
 10 files changed, 176 insertions(+), 11 deletions(-)

-- 
2.7.4



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-08  3:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-08  3:30 [PATCH v2 0/3] [florian/y2038] recvmmsg for timespec64 Song Chen

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.