Go to the previous, next section.

How does the autodetection work

To fully understand customizing of aa_autoinit you have to know (at least something ) how does the autodetection work.

All hardware drivers are stored in aa_drivers array -- array of pointers to drivers terminated by NULL pointer. Order is significant. First driver is tested before the second etc.

It is possible to customize your own order of drivers. This can be done using aa_displayrecomended list. It's a double linked list of strings that are interpreted as names of drivers. These drivers are tested before aa_drivers is procesed. There are several reasons to do it this way. Firstly, this "aditional" list is passed before the first of "standard array" drivers is used. Thus you can recommend the probing order of drivers in a very natural and comfortable way. Second, this method reduces executable file size. Third, you can prefer different drivers on different platforms with no aditional care about current configuration of AA-lib.

Go to the previous, next section.