Ye ilho spiffera, alle Saturday 09 June 2007 circa: > Hi everyone, Hi, Ye just two things: 1 - I think that if you know at module loading time the number of devices, you could allocate them as an array, without using kernel provided list. If prefer use arrays when I know in a moment how many structures i should allocate, and use lists when i _don't_know_at_all how many data i must manage... 2 - i think is wrong the way you initialize the list, with that code, for (i = 0; i < zty_nr_devs; i++) INIT_LIST_HEAD(&(zty_head[i].ztylist)); you create zty_nr_dev lists... I guess you find useful list_add() ;) see the definition here: http://lxr.linux.no/source/include/linux/list.h#L67 bye! -- -gaspa- ----------------------------------------------- --------- Powered by Debian GNU/Linux --------- ------ HomePage: iogaspa.altervista.org ------- -Il lunedi'dell'arrampicatore: www.lunedi.org - -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ