AFAIK get_info() is deprecated, you have to use read_proc().
> 2. What is the exact difference between proc_create_entry &
> proc_register? Is it necessary to write both of these functions?
proc_register() is no longer an exported function, you have to use
proc_create_entry() and friends.
> 3 . How the function write_proc works? and when that function is called
> by the kernel?
It's all explained in the procfs guide in Documentation/DocBook/. Just
run "make psdocs" in your kernel tree and you'll get it nicely
formatted.
Erik
-- J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department of Electrical Engineering, Faculty of Information Technology and Systems, Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl WWW: http://www-ict.its.tudelft.nl/~erik/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/