mmc card write protect solution

2015-04-27 Thread xiaoqiang zhao
Hi, there: Is it possible to send CMD28(or CMD29) from userspace through ioctl to enable(or disable) write protected of a mmc block ? Looking forward to your reply! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to get kernel header from my kernel source tree?

2015-04-27 Thread Ricardo Ribalda Delgado
make help make headers_install On Mon, Apr 27, 2015 at 11:40 AM, tianlilai laitianli2...@outlook.com wrote: Hi,Everyone: I have updated the kernel from v2.6.32 to v2.6.36 using my kernel source tree(v2.6.36). so I must provide the new kernel header to the developers of the device driver.

How to get kernel header from my kernel source tree?

2015-04-27 Thread tianlilai
Hi,Everyone: I have updated the kernel from v2.6.32 to v2.6.36 using my kernel source tree(v2.6.36). so I must provide the new kernel header to the developers of the device driver. How can I get the kernel header from my kernel source tree which the version is v2.6.36? Thanks very much!

RE: Semaphore and Spinlock

2015-04-27 Thread Jeff Haran
-Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- boun...@kernelnewbies.org] On Behalf Of Ruben Sent: Monday, April 27, 2015 12:10 PM To: kernelnewbies@kernelnewbies.org Subject: Re: Semaphore and Spinlock On 04/27/2015 12:31 PM, Jeff Haran

Re: Question about DC-DC frequency handling

2015-04-27 Thread Stefan Wahren
Hi, Michael Turquette mturque...@linaro.org hat am 26. April 2015 um 21:07 geschrieben: Quoting Stefan Wahren (2015-04-26 07:31:30) Hi, i'm current working on a regulator driver which should be able to change DC-DC clock frequency. Now here is my question. What is the prefered

Re: How to get kernel header from my kernel source tree?

2015-04-27 Thread Greg KH
On Mon, Apr 27, 2015 at 05:40:11PM +0800, tianlilai wrote: Hi,Everyone: I have updated the kernel from v2.6.32 to v2.6.36 using my kernel source tree(v2.6.36). so I must provide the new kernel header to the developers of the device driver. How can I get the kernel header from my kernel

Semaphore and Spinlock

2015-04-27 Thread Abhishek Bist
[ Semaphores are a bit like spinlocks, except the holder of a semaphore is a process, not a CPU. ] This is a very first line that is bein written on the description of semaphore on kernel newbies.So what are the different parameter that could justify this statement or the way it could be

Re: How to get kernel header from my kernel source tree?

2015-04-27 Thread Valdis . Kletnieks
On Mon, 27 Apr 2015 17:40:11 +0800, tianlilai said: Hi,Everyone: I have updated the kernel from v2.6.32 to v2.6.36 Do yourself and your developers a great service, and do the following: 1) Upgrade to v4.0 (recently released). 2.6.36 is almost 5 years old. 2) Get your driver module in-tree.

Re: Semaphore and Spinlock

2015-04-27 Thread Ruben Safir
On 04/27/2015 09:18 AM, Abhishek Bist wrote: [ Semaphores are a bit like spinlocks, except the holder of a semaphore is a process, not a CPU. ] This is a very first line that is bein written on the description of semaphore on kernel newbies.So what are the different parameter that could

Re: 4.1-rc1 fails with O3 optimization

2015-04-27 Thread Bobby Powers
Hello, Andev wrote: I usually compile my kernel with an unsupported O3 option(why not? :). Because there have been publications that show on major benchmarks, the effects of -O3 are indistinguishable from noise: http://people.cs.umass.edu/~emery/pubs/Stabilizer-UMass-CS-TR2011-43.pdf Have you

RE: How to traverse all file struct

2015-04-27 Thread cmqycmqy
I want to travese(find out) all opened file struct Actually, no, you don't. Ok,are there no list to manage all file struct,it is really not convenience. i want to find out all process that have open that file. Hint: There's probably a faster way to do it than checking *all* open files.

RE: How to traverse all file struct

2015-04-27 Thread cmqycmqy
(Again, depending I just want to print process info whitch have open a specific file£¨inode£©. Then if i want to delete a file in use,i can just kill the process one by one. No kernel hacking needed for that, you can do it in userspace. # lsof | grep /your/file/here # kill -9 ` lsof | grep

Re: How to traverse all file struct

2015-04-27 Thread Valdis . Kletnieks
On Tue, 28 Apr 2015 00:58:47 -, cmqycmqy said: (Again, depending I just want to print process info whitch have open a specific file£¨inode£©. Then if i want to delete a file in use,i can just kill the process one by one. No kernel hacking needed for that, you can do it in userspace. #

Re: Trying to write/read value at PCI BAR address from Kernel Space

2015-04-27 Thread Sudip Mukherjee
On Tue, Apr 28, 2015 at 10:25 AM, Robert Clove cloverob...@gmail.com wrote: Hi, I am trying to write and read PCI BAR address but not getting the expected output. I am using the ioremap api to get the address. Any leads will be fruit full. can you please post what you have tried till now...

Trying to write/read value at PCI BAR address from Kernel Space

2015-04-27 Thread Robert Clove
Hi, I am trying to write and read PCI BAR address but not getting the expected output. I am using the ioremap api to get the address. Any leads will be fruit full. Regards ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

How to traverse all file struct

2015-04-27 Thread cmqycmqy
I want to travese(find out) all opened file struct, but the s_files in struct super_block is not exit any more.how can i do that? why i want to do this is that i want to find out all process that have open that file. Is there any suggestion?

RE: Semaphore and Spinlock

2015-04-27 Thread Jeff Haran
-Original Message- From: kernelnewbies-bounces+jharan=bytemobile@kernelnewbies.org [mailto:kernelnewbies- bounces+jharan=bytemobile@kernelnewbies.org] On Behalf Of Abhishek Bist Sent: Monday, April 27, 2015 6:19 AM To: kernelnewbies@kernelnewbies.org Subject: Semaphore and

RE: Structure declaration without its members variables

2015-04-27 Thread Jeff Haran
-Original Message- From: kernelnewbies-boun...@kernelnewbies.org [mailto:kernelnewbies- boun...@kernelnewbies.org] On Behalf Of valdis.kletni...@vt.edu Sent: Sunday, April 26, 2015 7:23 PM To: harshkdev Cc: kernelnewbies@kernelnewbies.org Subject: Re: Structure declaration without

Re: How to traverse all file struct

2015-04-27 Thread Valdis . Kletnieks
On Mon, 27 Apr 2015 15:41:31 -, cmqycmqy said: I want to travese(find out) all opened file struct Actually, no, you don't. i want to find out all process that have open that file. Hint: There's probably a faster way to do it than checking *all* open files. You can probably do even better

Re: 4.1-rc1 fails with O3 optimization

2015-04-27 Thread Andev
On Mon, Apr 27, 2015 at 9:00 PM, Bobby Powers bobbypow...@gmail.com wrote: Hello, Andev wrote: I usually compile my kernel with an unsupported O3 option(why not? :). Because there have been publications that show on major benchmarks, the effects of -O3 are indistinguishable from noise:

Re: Semaphore and Spinlock

2015-04-27 Thread Ruben
On 04/27/2015 12:31 PM, Jeff Haran wrote: -Original Message- From: kernelnewbies-bounces+jharan=bytemobile@kernelnewbies.org [mailto:kernelnewbies- bounces+jharan=bytemobile@kernelnewbies.org] On Behalf Of Abhishek Bist Sent: Monday, April 27, 2015 6:19 AM To: