title: How to use bitops.h in user space
body: <p>I have this program where  I need to do some bit operations using the test_and_set_bit function found in bitops.h file. How can I include this file using <code>#include&lt;linux/bitops.h&gt;</code> in my <code>C</code> file. It doesn't seem to find it even though I could find it in the kernel source.</p>
  
  <p>Is it because it is not allowed to include in the user space program. Suggestions?</p>
  
  <p>I am using <code>#include&lt;linux/bitops.h&gt;</code> then compiling using <code>gcc myfile.c</code>. </p>
  
  <p>It shows no such file or directory for the bitops.h file. I could find it under the kernel directory though</p>