Re: what about $(Q)@ in toplevel Makefile??? A resent mail..

2009-08-07 Thread yihect
I'm reading top-level makefile of kernel version of 2.6.25, and being confused about $(Q)@ in following lines: 124 $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make 125 $(Q)@: I know what's meaning for line 124, but what about line 125?

what about $(Q)@ in toplevel Makefile??? A resent mail..

2009-08-06 Thread yihect
Hi all: Sorry, everybody. I sent the same mail in HTML-FORMAT, so maybe there presented disorderly characters in your mail client program. It's time waste to open that mail. So sorry, and I resend this mail with same content... I'm reading top-level makefile of kernel version of

what about $(Q)@ in toplevel Makefile???

2009-08-04 Thread yihect
Hi, all: I'm reading top-level makefile of kernel version of 2.6.25, and being confused about $(Q)@ in following lines: 124 $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make 125 $(Q)@: I know what's meaning for line 124, but what about line

Re: Is drivers' open() method get called while fork or dup fd?

2009-04-21 Thread yihect
Thanks for your generosity and your patience, I realy benefit from your great help. and ultimately, userspace open()-ing of the driver will definitely map to (through sys_open-do_sys_open-do_filp_open()-dv1394_open()) the per-device's open() API. this means THAT EVERY PROCESS that want to

How to share physical pages in multi-process???

2009-04-19 Thread yihect
Hi, all: I allocated some physical pages using __get_free_pages() api and mapped them into user-space with mmap() in my driver, but It seems not be shared in multi process. Following is content of /proc/157/maps file. The vma range of 40244000-40444000 mapped to /dev/mux_dev, notice the

How to define a macro in Makefile when making 2.6 kernel module ????

2009-04-18 Thread yihect
I want to add a macro in module makefile, with which I can enable or disable debugging, but how to do it, the CFLAGS seems can't work. Thanks.

Re: Is drivers' open() method get called while fork or dup fd?

2009-04-17 Thread yihect
.and many other reasons as well... 2009/4/15 yihect yih...@163.com: I want to store some process-dependent information in my driver. I want to init them in open() and deinit them in flush(), these 2 methods get called when the app process calling open() or close() functions. But if one parent

Is drivers' open() method get called while fork or dup fd?

2009-04-14 Thread yihect
I want to store some process-dependent information in my driver. I want to init them in open() and deinit them in flush(), these 2 methods get called when the app process calling open() or close() functions. But if one parent process forked child process with my driver opened. Than, is the

How to do concurrent control when accessing many registers by ioctl???

2009-04-10 Thread yihect
Hi, all: Im my device, there are many registers resider in several banks, these registers are all accessed by one IOCTL cmd in my driver. And there are 2 or 3 tasks will access these registers simultaneously in app layer. So, my question is: Is there some common model to do this kind of

Fw: How to do concurrent control when accessing many registers by ioctl???

2009-04-10 Thread yihect
2009/4/10 yihect yih...@163.com: Hi, all: Im my device, there are many registers resider in several banks, these registers are all Banks?? What is meant by that? Can you explain? Yes, the device is connected by HPI interface. All registers are classified purpose. When app want

Re: How to do concurrent control when accessing many registers by ioctl???

2009-04-10 Thread yihect
I can only suggest samples, common model u have to slowly go through file by file. But I am not sure what kind of common model u are looking for - commonality based on what attributes? In the kernel source's drivers subdirectory: Thanks for your help. Is this mail looks OK? This reply

question about mapping RAM into user space.

2009-03-26 Thread yihect
Hi, all: I'm a newbie of kernel. I'm working on my mux driver in hand, and want to map some RAM(say, 1024*1024*2 bytes totally)into user space. Accroding the LDD3 book, I'm using __get_free_pages() which be called in nopage() operation of struct vm_operations_struct like follow:

Re: question about mapping RAM into user space.

2009-03-26 Thread yihect
It seems the mux_vma_nopage() operation hadn't been called. - Original Message - From: yihect To: kernelnewbie Cc: yih...@163.com Sent: Thursday, March 26, 2009 1:48 PM Subject: question about mapping RAM into user space. Hi, all: I'm a newbie of kernel. I'm