EmbLogic's Blog

The Algorithm to trim.

int scull_trim(struct scull_dev *dev)

-> Iterate through scull_qsets

-> for(*s_q=s_d->data;s_q;s_q=next)

-> In every iteration

-> Free the quantums

-> Finaly free the qset array

-> Make pointer to qset as NULL

-> Free scull_qset

-> Finally initialize the default values

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>