≡ Menu

device driver

FAQ Updates – June/26/2011

Our FAQ section is updated in last few days with new howtos:

FAQ & Howtos RSS Feed

Get intimated about our new howtos / faqs as soon as it is released via RSS feed.

nixCraft is on Facebook!

Not our Fan yet? We suggest you become one right away! Just visit our Facebook Page. Click on the "like" button.

Download of the day: Linux Kernel 2.6.28

Linux kernel version 2.6.28 has been released and available for download. The new version includes following stable and new features:

a] ext4 file system - The ext4 filesystem can support volumes with sizes up to 1 exbibyte and files with sizes up to 16 TiB. ext4 removes ext3 64-bit storage limits and adds other performance improvements.

b] Graphics Execution Manager (GEM) - It is a a modern memory manager specialized for use in device drivers for graphics chipsets. It manages graphics memory, controls the execution context and manages the Non-Uniform Memory Access (NUMA) environment on modern graphics chipsets. The "xf86-video-intel" device driver will feature GEM integration.

c] Other features - Stable USB drivers, KVM, bug fixes and other stuff.

=> Download Linux kernel 2.6.28 here. You may also find our kernel compile tutorial useful.

Yet Another Reason To Get Open Source Software

The USB Overdrive is a device driver for Mac OS X that handles any USB mouse / trackball / joystick / gamepad and any Bluetooth mouse from any manufacturer and lets you configure them either globally or on a per-application basis. Some one posted a screen shot of USB Overdrive software. If you are a sensitive pirate you might feel guilty (found via Digg). Maybe it is a time to switch to Linux.

So how do you find out how fast is your hard disk under Linux? Is it running at SATA I (150 MB/s) or SATA II (300 MB/s) speed without opening computer case or chassis?
[click to continue…]

FreeBSD comes with kldstat command. The kldstat utility or command displays the status of any files dynamically linked into the kernel. And the kldunload utility unloads a file which was previously loaded with lldload command. You can use kldunload command as follows.

Unload a file from the kernel

First login as a root user (use su - or sudo commnad):

Get list of loaded modules/drivers first use following command

# kldstat

To remove module use the following command

The kldstat utility displays the status of any files dynamically linked into the kernel.

kldunload -i ID

OR

kldunload module-name

Example to unload smbfs module

Type the following command as the root user:
# kldunload smbfs
OR
# kldunload -i 8

Please note that # 8 is module ID obtained using kldstat command.

Force the unload

You can pass -f option to kldunload to force the unload. This ignores error returns to MOD_QUIESCE from the module and implies that the module should be unloaded even if it is currently in use. The users are left to cope as best they can.
# kldunload -f smbfs