Saturday, April 14, 2012

What happens in a Linux sysctl call? What is sysctl?

Sysctl interface is a mechanism exported under the proc file system at /proc/sys. This interface allows you to read and change the current running configuration of the Linux kernel. Typically, this involves reading and writing files under the /proc/sys virtual file system.

2 comments:

Tom J. said...

Can you use ioctl and sysctl interchangably? What is the difference between these two?

Penguin said...

Tom J.: It depends on what calls are supported on your system. ioctls are usually supported by some drivers, while the sysctls are usually supported by the kernel. Very rarely can the same feature be tweaked by both the interfaces.

Post a Comment