From: Thadeu Lima de Souza Cascardo Date: Tue, 1 Dec 2009 10:54:11 +0000 (-0200) Subject: Put character devices allocation in its own foil. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fkernel%2Fold_slides%2F.git;a=commitdiff_plain;h=946484be0300a09896e8b82f9b07b23504bf24e6 Put character devices allocation in its own foil. --- diff --git a/_ldd.xml b/_ldd.xml index 4930ffc..8056a1f 100644 --- a/_ldd.xml +++ b/_ldd.xml @@ -210,9 +210,13 @@ Linux devices may be of different types, including character devices, block devices or network devices. Both character and block devices have identifying numbers, a major and a minor number. + + + +Character devices allocation In Linux, major and minor numbers have to be requested or allocated. The -calls to do that are: +calls to do that for character devices are: int register\_chrdev\_region (dev\_t first, unsigned int count, char