title: Linked list in shared memory, linux kernel
body: <p>This was an interview question and I am still confused about it.</p>
  
  <p>Implement 2 APIs -  1.to access the head of a linked list which is present in shared memory</p>
  
  <p>2.to access the element after the head </p>
  
  <p>Kernel in the question is Linux.</p>
  
  <p>I read on a forum that instead of using pointers, an offset should be used (is it still a linked list if pointers aren't used)</p>
  
  <p>I don't really understand this part. Also curious about the address translations that will occur, considering virtual memory is in place.</p>
  
  <p>Apologies for the question being vague, but that's all I could figure out.</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thanks </p>