On May 18, 2013, at 1:32 AM, Priyanka Kapoor wrote: > On Fri, May 17, 2013 at 4:53 PM, Christopher Sean Morrison > <brl...@mac.com> wrote: > >> * /dev/oglb 'copy mode' fails to refresh the framebuffer >> >> Otherwise, you should see your logging if you run the "fbserv" command >> (which has a man page on how to use it) with "rt -F0 ..." or stand-alone >> with "rt -F/dev/dbg ..." (also has a man page) if you hooked it in correctly. > > Sir, the file that I wrote is not correctly hooked up. I am trying to > understand how if_debug is hooked.
How did you hook yours up? Presumably you looked at how the debug interface or one of the other interfaces (e.g., the IF_X interface) was hooked up to know how to hook up yours, yes? > I just changed fb_logs of it, to see if they are changed at console or > not. Its not. It means fb_write(x x x x x) is not coming from this > file. Also rt -F/dev/debug works. > I also defined dbg_interface in > fbio.h, That declares the interface. > included if_dbg.c file in CMakeLists.txt. That compiles the interface. > And in if_dbg file, > defined device file as /dev/dbg. That implements the interface. > But on rt -F/dev/dbg, it says no device file found. So you didn't do anything to hook it up. None of the preceding steps you described, at least, did that. The piece you're missing IS to hook it up. This is what you need to figure out. There are several other examples to follow that should help you. Follow the preprocessor symbols for one of the other interface types. Follow the structure global(s) they define. Search for all the places they're used. Sean ------------------------------------------------------------------------------ AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel