How to make a struct stored in two different memory pages in linux kernel?
<p>I'm not good at English, I will try my best to make the problem clear.   </p>

<p>Supposing I have a struct which is:  </p>

<pre><code>struct A {
   /* the first half */
   int a;
   int b;
   /* the second half */
   int c;
   int d;
} ;
</code></pre>

<p>We know that the members of A will be stored continuously in memory. However, I want to make the first half and the second half of A stored in two different memory pages, which means the struct is partitioned in memory. How can I achieve it?<br>
Suppose that struct A is a structure in linux kernel, So I'm programming in kernel space. And the kernel version is 3.10.  </p>

<p><strong>Update</strong>:To make my goal clear, I draw following picture, which is the memory layout I want, this can avoid the waste of memory space:<br>
<a href="https://i.stack.imgur.com/Wx4n6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Wx4n6.png" alt="enter image description here"></a></p>