* cat a /proc entry
@ 2012-11-21 4:04 ratheesh kannoth
2012-11-21 13:36 ` Celelibi
0 siblings, 1 reply; 2+ messages in thread
From: ratheesh kannoth @ 2012-11-21 4:04 UTC (permalink / raw)
To: linux-newbie, linux-c-programming
Hi,
is there size limit on the buffer content as i am using "cat" command
( so ,not allocating any buffer in userspace, so not doing any
copy_to_user from kernel; simply doing sprintf(buffer, %s , data )
from kernel for a big data )
-Ratheesh
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cat a /proc entry
2012-11-21 4:04 cat a /proc entry ratheesh kannoth
@ 2012-11-21 13:36 ` Celelibi
0 siblings, 0 replies; 2+ messages in thread
From: Celelibi @ 2012-11-21 13:36 UTC (permalink / raw)
To: linux-newbie, linux-c-programming
2012/11/21, ratheesh kannoth <ratheesh.ksz@gmail.com>:
> Hi,
>
> is there size limit on the buffer content as i am using "cat" command
> ( so ,not allocating any buffer in userspace, so not doing any
> copy_to_user from kernel; simply doing sprintf(buffer, %s , data )
> from kernel for a big data )
>
> -Ratheesh
Hello,
I'm not sure to understand your problem.
Do you write userland or kernelland code?
If you write kernel code, why don't you just use the API behind the
/proc file system?
If you write userland code, what is your problem with the buffer
allocation? You can allocate a buffer as big as your memroy allows it.
Celelibi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-11-21 13:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-21 4:04 cat a /proc entry ratheesh kannoth
2012-11-21 13:36 ` Celelibi
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.