'kernel' Category
-
jun132010
Licenças para módulos no Linux
O arquivo /usr/src/linux/include/linux/module.h define as licenças aceitáveis para um módulo (ou driver) seja reconhecido como software livre.
GPL - GNU Public License v2 or later
GPL v2 - GNU Public License v2
GPL and additional rights - GNU Public License v2 rights and more
Dual BSD/GPL - GNU Public License v2 or BSD license choice
Dual MIT/GPL - GNU Public License v2 or MIT license choice
Dual MPL/GPL [...] -
abr262010
kthreads (1)
Creating a thread at kernel-space
Now that I know that somebody at Academia reads my posts I’ll put code with a _little_ documentation information together. Today we will do a quick review about kernel threads or to be more precisely, a way to perform some operations in the background. Kernel threads are standard process [...] -
abr212010
Adding procfs and sysfs interface in your lkml
Hi. This post will show how to add two important things about device model in your linux kernel module (lkml). Sysfs is the user-space manifestation of the kernel’s structured device model. It’s similar to procfs in that both are in-memory filesystem containing information about kernel data structures. Basically:
procfs is a generic window into kernel internals
sysfs [...] -
abr202010
Notify chain: example 1
This is a basic skeleton of a Linux kernel module about notify chain that I’ll put as examples on my final course paper. When user presses a key, kernel “reads” it and then, using notify chain informs all subsystems which want to be informed about pressed key.
/* keyboard-dump.c
*
* This is a “notify chain” example [...] -
nov152009
Acionando os mantenedores
Se você precisar entrar em contato com o mantendor de algum sub-sistema do kernel Linux mas não sabe onde procurar, utilize um script (get_maintainer.pl) incluído no próprio código. Um exemplo, suponha que você utilize o sistema de arquivos ext4 e deseje sugerir alguma idéia. Se for um bug é recomendado utilizar a plataforma de submissão [...]