Re: Device Mapper Query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi  Satyajeet,

On Fri, Jul 20, 2012 at 7:52 PM, Satyajeet <satya.unplugged@xxxxxxxxx> wrote:
Does the dmsetup <dm-dev> <table-file> command, calls the constructor dm_ctr_fn??
Yes. 
If yes what are the argv passed in the dm_ctr_fn, are they the args you pass to dmsetup??
True  
Is this constructor a callback from dm layer? when it is invoked and how it is invoked?

Dm layer registers a fops when ever a new device mapper target is registered. 
So whenever a new device is created then dm refer the fops and call the respective functions.

To start learning more you can start looking into linear target's code.

Regards,
Gaurav Mahajan.
 
Replies will be appreciated.

Regards,
satyajeet

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux