Devesh> Here I am saying that assigning Key is sufficient Or there
    Devesh> are some other specific setps to be taken?
It would depend on the device.  You can look at the mthca, ipath and ehca
drivers' implementation of get_dma_mr() for examples.
 - R.