[LTP] [PATCH 1/2] syscalls/ioctl: ioctl_sg01.c: ioctl_sg01 invoked oom-killer

Cyril Hrubis chrubis@suse.cz
Wed Jan 27 10:24:45 CET 2021


Hi!
> > I sent to you the case swapping01 solving this(via FILE_LINES_SCANF)
> > already, feel free to take an reference:
> >
> > https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/mem/swapping/swapping01.c#L85
> >
> 
> Or, maybe we can extract this process into a function and put it in
> tst_memutils.h, to convinently reuse by other testcases too?
> 
> void tst_get_MemAvailable(void);

Please do not use CamelCase.

It should be tst_get_mem_available(void) and it should also return
unsigned long.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list