Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Device-mapper Development (http://www.linux-archive.org/device-mapper-development/)
-   -   communication between a dm target and a userspace application (http://www.linux-archive.org/device-mapper-development/620678-communication-between-dm-target-userspace-application.html)

HyoGi Sim 01-13-2012 05:17 PM

communication between a dm target and a userspace application
 
Hi,

I'm working with a dm device which needs a way to communicate with a
userspace application as follows:

1. The application gives a list of sectors which should be updated in
an async way by the dm device.
2. The application requests to the dm device a list of sectors which
meet with some condition.

What is a good way to implement this?
I'm rather new to the kernel as well as device mapper, and possible
ways that I can imagine are:

1. adding ioctl (is it possible/ok to have target specific ioctl command?)
2. creating a sysfs/proc entry

Or do you think it's a bad idea that the userspace application and the
dm device communicate in that way?

Thanks,
Hyogi

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel


All times are GMT. The time now is 04:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.