From 9dfb5efa91fc0f051a1ddc88ace2867bb6b32275 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 5 May 2018 10:13:04 +0200 Subject: prog: simplify code Now that we don't have ReturnArg and only ResultArg's refer to other ResultArg's we can remove ArgUser/ArgUsed and devirtualize lots of code. --- sys/linux/sys.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/linux/sys.txt') diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 8fd578629..10b35b2b4 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -212,7 +212,8 @@ resource io_ctx[intptr] io_setup(n int32, ctx ptr[out, io_ctx]) io_destroy(ctx io_ctx) io_getevents(ctx io_ctx, min_nr intptr, nr len[events], events ptr[out, array[io_event]], timeout ptr[in, timespec]) -# Prog knows that poiners passed in iocbpp needs to be forwarded to io_cancel. +# TODO: kernel identifies requets by address, so pointers passed to io_submit +# need to be forwarded to io_cancel somehow. io_submit(ctx io_ctx, nr len[iocbpp], iocbpp ptr[in, array[ptr[in, iocb]]]) io_cancel(ctx io_ctx, iocb ptr[in, iocb], res ptr[out, io_event]) -- cgit mrf-deployment