LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-05-2012, 06:46 AM   #1
sanrio alvares
LQ Newbie
 
Registered: Apr 2010
Location: Mumbai, India
Distribution: ubuntu, fedora, android
Posts: 12

Rep: Reputation: 0
how to know which user space process is writing to SD card?


Here is the kernel stack generated using WARN_ON in sdhci_send_command

*****WARNING: at /vobs/iandroid/src/kernel/drivers/mmc/host/mx_sdhci.c:495 sdhci_send_command+0x150/0x86c()
Modules linked in: g_mot_android(-) mxc91341_oh_udc sipcttydrv aplogger coredump bploader sipcdrv mu_drv
[<c0082e3c>] (dump_stack+0x0/0x14) from [<c009cda4>] (warn_slowpath+0x68/0x84)
[<c009cd3c>] (warn_slowpath+0x0/0x84) from [<c02495e0>] (sdhci_send_command+0x150/0x86c)
r3:00000033 r2:00000000
r7:00000000 r6:c657bf5c r5:c654a5c0 r4:c040b510
[<c0249490>] (sdhci_send_command+0x0/0x86c) from [<c024a1e0>] (sdhci_request+0x188/0x1bc)
[<c024a058>] (sdhci_request+0x0/0x1bc) from [<c02409e4>] (mmc_wait_for_req+0x1f8/0x220)
r8:c654a400 r7:c657bef0 r6:c657bf5c r5:00001000 r4:00000001
[<c02407ec>] (mmc_wait_for_req+0x0/0x220) from [<c0247fa8>] (mmc_blk_issue_rq+0x1f4/0x7b0)
[<c0247db4>] (mmc_blk_issue_rq+0x0/0x7b0) from [<c0248a14>] (mmc_queue_thread+0x134/0x154)
[<c02488e0>] (mmc_queue_thread+0x0/0x154) from [<c00b2e88>] (kthread+0x54/0x80)
r8:00000000 r7:00000000 r6:00000000 r5:c02488e0 r4:fffffffc
[<c00b2e34>] (kthread+0x0/0x80) from [<c009f3a8>] (do_exit+0x0/0x738)
r5:00000000 r4:00000000
---[ end trace 6dcb56938527653f ]---*****


How can I come to know which process is writing to SD card?
 
Old 09-05-2012, 08:00 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,269

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
If its in userspace, try http://linux.die.net/man/1/fuser http://linux.die.net/man/8/lsof
 
1 members found this post helpful.
Old 09-07-2012, 01:03 AM   #3
sanrio alvares
LQ Newbie
 
Registered: Apr 2010
Location: Mumbai, India
Distribution: ubuntu, fedora, android
Posts: 12

Original Poster
Rep: Reputation: 0
thanks
 
  


Reply

Tags
devicedrivers, kernel, linux, mmc, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
memory management of a process in kernel space and user space. embeddedlinux Linux - Newbie 1 05-08-2012 08:08 AM
how to send events from kernel module to user space process yugandhar Linux - Kernel 2 02-21-2011 10:39 AM
Help : Process control from Boot loader to User Space vmkaarthik Linux - Newbie 2 06-29-2010 11:23 PM
Virtual space seen by each new process in User space shreshtha Linux - General 2 06-22-2010 05:47 AM
How to access device from user space process stardust496 Linux - Hardware 3 07-23-2008 01:40 PM


All times are GMT -5. The time now is 07:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration