Welcome! Log In Create A New Profile


Array creation in kernel space

Posted by ravi.chakram 
Array creation in kernel space
January 10, 2014 02:50AM
I want to create ar array of 30 integers, which one of the following is better and gives good performance?

1. create an array of 30 integers.
int a[30];

2. create a memory using kmalloc and access using pointer.
int *a=(int *)kmalloc(30*sizeof(int))

Your Email:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 9 plus 2?