title: How to access SurfaceFlinger from userspace program?
body: <p>I would like to write a userspace program to talk to SurfaceFlinger and call its <code>dump</code> function. How can I access SurfaceFlinger and make such a call from my C++ program?</p>
  
  <p>I know that SurfaceFlinger is instantiated in main_surfaceflinger.cpp and is published. I don't know how to use it in my C++ program.</p>