fred xvii wrote: > Hi, > > I'd like to pass some data from kernel to user space. So, I create an > entry in procfs, and want to have a process read this new entry to get > its data. However, I can have big data, more than the available > place. > > As far as I understand it, the read() function one creates to read a > proc entry is called by fs/proc/generic.c:proc_file_read(). There max > available size is given by: > > count = min_t(size_t, PROC_BLOCK_SIZE, nbytes); > where PROC_BLOCK_SIZE is 1024. > > So, at most, I can write no more than 1k in my proc > entry. Unfortunately, I need to write more. > > So my (first) question is simple: how to write more? > > However, if this is not possible, it can mean that /proc is not > appropriate to what I want to do. So, is there another solution, more > correct? At least you could under 2.4 kernels. You'll need to create your own read handler. For an implementation example from the 2,4 era see <http://mail.nl.linux.org/kernelnewbies/2004-05/msg00102.html> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/