vnode file access

Hey, I'm new to the bsd kernel and i'm implementing a vop_read function. The problem I'm having is determining

  1. Which physical block is being read given the vnode's logical block #
  2. How many bytes are being read

Any tips are greatly appreciated!