Re: difference between create_proc_{read|info}_entry() ?

From: Borislav Deianov (borislav@lix.polytechnique.fr)
Date: Mon May 01 2000 - 11:11:33 EST


In article <200005011518.RAA24659@duteinh.et.tudelft.nl> you wrote:
> Could somebody explain the difference between create_proc_read_entry() and
> create_proc_info_entry() to me? Both are used within the kernel, but from
> my understanding they are both used to register functions that deliver
> data when the /proc file is being read, so why are there two functions?

According to a comment in proc/fs/generic.c:proc_file_read(),
create_proc_info_entry() is only preserved for backwards
compatibility, use create_proc_read_entry() in new code.

Regards,
Borislav

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:08 EST