EmbLogic's Blog

Writing Character Device Driver

Following are the important points to note while writing data from user space to kernel space

1. The memory we allocate for creating qsets are architecture dependent, because qsets are the array of pointers which points to quantums i.e. they store the address of quantums.

2. so , for creating 8qsets in 32bit system we need to allocate 32 bytes of memory while in 64 bit system we need to allocate 64bytes of memory

 

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>