I wanted to know more about dma_map and dma_unmap - linux

can somebody point me out to a simple doc on why dma_unmap is required. Please, be free to explain even the dma_map. I new to device drivers.
Thanks

I think that the following links can be useful:
http://www.kernel.org/doc/Documentation/DMA-API.txt
http://en.wikipedia.org/wiki/Direct_memory_access

Related

log4j2.noFormatMsgLookup or log4j2.formatMsgNoLookups?

At https://logging.apache.org/log4j/2.x/security.html they use log4j2.noFormatMsgLookup and log4j2.formatMsgNoLookups
Which is the correct property: log4j2.formatMsgNoLookups or log4j2.noFormatMsgLookup? The last one seems a typo?
Thank you!
It is log4j2.formatMsgNoLookups (source).
The documentation error has been fixed already, but apparently the site was not updated yet.

Saving the stream using Intel RealSense

I'm new to Intel RealSense. I want to learn how to save the color and depth streams to bitmap. I'm using C++ as my language. I have learned that there is a function ToBitmap(), but it can be used for C#.
So I wanted to know is there any method or any function that will help me in saving the streams.
Thanks in advance.
I'm also working my way through this, It seems that the only option is to do it manually. We need to get ImageData from PXCImage. The actual data is stored in ImageData.planes but I still don't understand how it's organized.
https://software.intel.com/en-us/articles/dipping-into-the-intel-realsense-raw-data-stream?language=en Here you can find example of getting depth data.
But I still have no idea what is pitches and how data inside planes is organized.
Here: https://software.intel.com/en-us/forums/intel-perceptual-computing-sdk/topic/332718 kind of backwards process is described.
I would be glad if you will be able to get some insight from this information.
And I obviously would be glad if you've discovered some insight you can share :).
UPD: Here is something that looks like what we need, I haven't worked with it yet, but it sheds some light on internal organization of planes[0] https://software.intel.com/en-us/forums/intel-perceptual-computing-sdk/topic/514663
UPD2: To add some completeness to the answer:
You then can create GDI+ image from data in ImageData:
auto colorData = PXCImage::ImageData();
if (image->AcquireAccess(PXCImage::ACCESS_READ, PXCImage::PIXEL_FORMAT_RGB24, &colorData) >= PXC_STATUS_NO_ERROR) {
auto colorInfo = image->QueryInfo();
auto colorPitch = colorData.pitches[0] / sizeof(pxcBYTE);
Gdiplus::Bitmap tBitMap(colorInfo.width, colorInfo.height, colorPitch, PixelFormat24bppRGB, baseColorAddress);
}
And Bitmap is subclass of Image (https://msdn.microsoft.com/en-us/library/windows/desktop/ms534462(v=vs.85).aspx). You can save Image to file in different formats.

ApiAxle returning empty result

I am using API Axle for my node API.In that i am following this tutorial http://www.cubrid.org/blog/cubrid-appstools/apiaxle-open-source-api-management-analytics-proxy/.In that after i want to see how many hits for a particular API or particular keys..
For that i am using the following link:
http://127.0.0.1:3000/v1/apis/charts
http://127.0.0.1:3000/v1/keys/charts
But its returning results:{}.PLease help me to solve this.Thanks in advance.
Phil from ApiAxle helped me figure this out. It turns out you need to run apiaxle-proxy with the -q flag, or use their separate queue processor. There is some documentation about this here: https://github.com/apiaxle/apiaxle/blob/4b1a80ef576b3af9511c1239e99841b2d521eb63/proxy/apiaxle-proxy.coffee#L533-538

undefined is not a function zombie.js

I'm new to both zombie and cucumber-js, so I apologize if I leave out anything important. If you need something I missed, please just ask.
I'm trying to get cucumber-js/zombie up and running on my XP box. I've had several issues along the way, but, with help, have gotten past those. Now I'm getting a new one. I have a test feature file with test files before it (basically pulled from the cucumber.js page on github). I installed both cucumber and zombie with a -g since it didn't see it otherwise. When I run the command cucumber-js features\myfeature.feature, I get the following error:
<projfolder>\features\support\world.js
this.browser = new zombie.Browser();
^
TypeError: undefined is not a function
(followed by a stacktrace)
I.am.lost.
I would greatly appreciate ANY help that ANYONE can give me on this.
node v0.8.17
cucumber v0.3.0
WinXP
don't know how to tell a version of zombie
I understand that this is coming quite late to the question, and the author may have moved on to something else. It is to help others, who may come to this question
Hopefully, your zombie is set to this -
var zombie=require("zombie");
Having clarified that, you need to change your step from
this.browser = new zombie.Browser();
to:
this.browser=new zombie();
and that should work fine.
There is a lot more to that, for more help check this API out.

Linux can bus driver

I am going through a can base network driver for MCP-2515
https://github.com/raspberrypi/linux/blob/rpi-3.6.y/drivers/net/can/mcp251x.c
Please suggest where i can find the description of the function, :--
alloc_candev
open_candev
alloc_can_skb
can_dropped_invalid_skb
alloc_can_err_skb
etc .....
Is there some read-me file or some tutorial ?
Please suggest.
For kernel functions I have found
lxr
very useful. But I am not that this is what you are asking for, perhaps you could be a little more specific in your question.
This is the first place to look for info about SocketCAN drivers: https://www.kernel.org/doc/Documentation/networking/can.txt
Networking stuff can be found in the same folder: https://www.kernel.org/doc/Documentation/networking/
Here a description of network buffering in Linux: http://vger.kernel.org/~davem/skb.html and http://www.tldp.org/LDP/khg/HyperNews/get/net/net-intro.html

Resources