Thread (6 messages) read the whole thread 6 messages, 3 authors, 2011-06-06

RE: [RFC][PATCH] powerpc: Use the #address-cells information to parsememory/reg

From: David Laight <hidden>
Date: 2011-06-06 09:02:01
Also in: kexec, lkml

quoted
Changed the add_usable_mem_property() to accept FILE* fp instead of
int fd,
quoted
as most of the other users of read_memory_region_limits() deals with
FILE*.
quoted
Signed-off-by: Suzuki K. Poulose <redacted>
=20
Could you please let me know your thoughts/comments about this patch ?
Is the change to use 'FILE *' actually progress?
I'd have thought that the randomly aligned read/lseek system calls
that this allows to happen are not desirable for anything that
isn't a true file.

I'd also suggest that the sizeof's should be applied to the
actual type of the variable being read/written, not arbitrarily
'long' or 'int', and this probably ought to be some fixed size type.

	David
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help