Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 638049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:41:25+00:00 2026-05-13T20:41:25+00:00

I’m porting / debugging a device driver (that is used by another kernel module)

  • 0

I’m porting / debugging a device driver (that is used by another kernel module) and facing a dead end because dma_sync_single_for_device() fails with an kernel oops.

I have no clue what that function is supposed to do and googling does not really help, so I probably need to learn more about this stuff in total.

The question is, where to start?

Oh yeah, in case it is relevant, the code is supposed to run on a PowerPC (and the linux is OpenWRT)

EDIT:
On-line resources preferrable (books take a few days to be delivered 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T20:41:25+00:00Added an answer on May 13, 2026 at 8:41 pm

    On-line:

    Anatomy of the Linux slab allocator

    Understanding the Linux Virtual Memory Manager

    Linux Device Drivers, Third Edition

    The Linux Kernel Module Programming Guide

    Writing device drivers in Linux: A brief tutorial

    Books:

    Linux Kernel Development (2nd Edition)

    Essential Linux Device Drivers ( Only the first 4 – 5 chapters )

    Useful Resources:

    the Linux Cross Reference ( Searchable Kernel Source for all Kernels )

    API changes in the 2.6 kernel series


    dma_sync_single_for_device calls dma_sync_single_range_for_cpu a little further up in the file and this is the source documentation ( I assume that even though this is for arm the interface and behavior are the same ):

    /**
     380 * dma_sync_single_range_for_cpu
     381 * @dev: valid struct device pointer, or NULL for ISA and EISA-like devices
     382 * @handle: DMA address of buffer
     383 * @offset: offset of region to start sync
     384 * @size: size of region to sync
     385 * @dir: DMA transfer direction (same as passed to dma_map_single)
     386 *
     387 * Make physical memory consistent for a single streaming mode DMA
     388 * translation after a transfer.
     389 *
     390 * If you perform a dma_map_single() but wish to interrogate the
     391 * buffer using the cpu, yet do not wish to teardown the PCI dma
     392 * mapping, you must call this function before doing so.  At the
     393 * next point you give the PCI dma address back to the card, you
     394 * must first the perform a dma_sync_for_device, and then the
     395 * device again owns the buffer.
     396 */
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 428k
  • Answers 428k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer User.connection.select_values("SELECT name FROM users") #=> ["francois"] May 15, 2026 at 1:12 pm
  • Editorial Team
    Editorial Team added an answer You have to do the calculation yourself. Implement scrollViewDidScroll: in… May 15, 2026 at 1:12 pm
  • Editorial Team
    Editorial Team added an answer Bit Flags. It's a technique used as part of Bitmasking.… May 15, 2026 at 1:12 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.