Is there a proper documentation for linux kernel functions? [closed] - c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
When I come across a new kernel function, like those in "linux/list.h" and "sys/kmem.h", my only sources of help are books like "Linux Device Drivers" or the "Linux Cross reference" page. But the book only cover the most commonly used functions, sometimes the obsolete version, and the cross reference page only gives the function implementation without talking about what the parameters are. If I were lucky, I could find people asking about the function online, but that is not always the case. Is there a good documentation for kernel functions like a man page for most user space functions?

There is. Of course "proper" is a matter of opinion.
The Linux Kernel's documentation web pages seems proper to me.
OTOH, I suspect many people would argue that source code itself is the only real proper documentation.

Related

Is there any library functions in C to check the Internet connection? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Can you give me a simplest method to check the Internet availability using a C program in Linux?
I have implemented a program to run the system command 'traceroute' in C. Before this I have to check whether the Internet connection is available or not. So can you suggest a method?
Short answer: no. Neither C nor C++ has direct knowledge of networking, or any built-in networking functions.
Depending on what 3rd-party libraries you are using, there may be something you can use, but that depends on the library, it isn't directly part of C.
I can imagine there are libraries out there that might try to ping some internal/external address, perform a name lookup, etc. But if you're on an isolated network, not having the ability to ping, lookup, or cross a firewall to get to a certain location may be perfectly valid, and doesn't indicate a networking problem.

FUSE - detailed documentation [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
trying to get my own filesystem working using fuse (filesystem in user space, linux) im really curious on where to get detailed up to date documentation of the operations used?
most time i search for other file system implementations and see what they do, but some operations seem to be not widely used like poll/ioctl or bmap.
and the documentation of the fuse api doesnt help much, cause e.g. the parameters and return values of the operations are not documented thus i have to guess how to use em
so the question is where do i get better information about how such exotic operations are supposed to be implemented?
thx
Yes, you are right, many places you can read that comment saying there is little documentation on FUSE. Perhaps that's because there is so little to document. Or perhaps the implementation is only meant for those who understand the tradeoff of userspace filesystem well enough. So perhaps you can refer to the following documentation, tutorials, slides or even sample codes for more information:
FUSE Design Document (original documentation from Sun?):
http://www.youblisher.com/p/31627-fuse/
http://wr.informatik.uni-hamburg.de/_media/research/labs/2008/2008-03-michael_kuhn-container_library_and_fuse_container_file_system-report.pdf
http://www.oug.org/files/presentations/losug-fuse.pdf
http://sar.informatik.hu-berlin.de/teaching/2013-w/2013w_osp2/lab/Lab-4-FUSE/lab-FUSE_.pdf
http://www.cs.hmc.edu/~geoff/classes/hmc.cs135.201001/homework/fuse/fuse_doc.html (tutorials)
http://www.cs.cmu.edu/~./fp/courses/15213-s07/lectures/15-filesys/index.html
http://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/
Sample code:
http://fuse.sourceforge.net/helloworld.html
And perhaps this is more research-oriented:
http://www.msrsas.org/docs/sastech_journals/archives/May2011/2.pdf
https://code.google.com/p/s3fs/wiki/FuseOverAmazon
But generally there is a lot of problems/issues (which may be solved through some complex algorithm) with implementing filesystem in userspace, which is why Linus has commented it as "toy":
https://ceph.com/dev-notes/linus-vs-fuse/
15Apr2015 update:
I just found this (and many other slides - just look at the right hand side of this webpage):
http://www.slideshare.net/adorepump/fuse-developing-fillesystems-in-userspace

is there any CHM/html reference for unix/linux C functions (like in man)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
i need such reference preferable in CHM format or any other fast-access format. I need all *nix functions + pthread + all sockets (network) functions.
Searching the internet i did not find any, so working from my home on my unix projects is too slow.. i need to man() all the funcs i need in my remote shell.
Thank you
I don`t know if such exist. You can build one by yourself - man2html ( available on Unix and Linux ) will produce a html version which can be later converted to chm with HTML Help.
Rather than reading Linux-specific man pages I would simply read the documentation in the standard:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/contents.html
Yes, there is one since at least 2011. ;-)
(http://onnerby.se/~daniel/chm/)

Where is the list of the POSIX C API functions? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm trying to find out where I can find documentation on POSIX functions, but coming up short. Any recommendations?
POSIX 1003.1-2008 is now available on the web (all 3872 pages of it, in PDF and HTML). You have to register (free). I got to it from the Open Group Bookstore.
See How to Portably scanf into a pid_t in C for my original answer that included this information.
Strictly speaking, the definitive list of the POSIX functions is the POSIX standards documents themselves.
There's a pretty good introduction to what POSIX is all about, with links to plenty of reference material on Wikipedia.
zipped versions of the HTML for grepping
http://pubs.opengroup.org/onlinepubs/9699919799/download/
http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip
Those are useful when you start wanting to grep for things, without paying for the PDF.
Mentioned by Jonathan.

Where can I find a complete reference of the ncurses C API? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Where can I find a complete reference of the ncurses C API?
I found this question a while back, but none of the answers so far answer the original question. The complete freely available API reference is available through the . . .
NCURSES MAN PAGES
The documentation that comes with the library actually isn't that bad.
http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/
You can buy this book. I have it and recommend: John Strang, Programming with curses, O'Reilly, ISBN 0-937175-02-1
The best online source information: http://invisible-island.net/ncurses/ncurses-intro.html
I learned a lot about ncurses reading the minicom source code and the iptraf linux network monitor.
I've found the book "Programmer's Guide to nCurses" (Dan Gookin, published by Wiley) invaluable as it includes both tutorial and an impressive reference to the API.
There's also the O'Reilly Nutshell guide "Programming with Curses" which isn't too bad.

Resources