Re: Any experience with GPS/GPRS/GSM application kits ?

2010-02-09 Thread Thomas Petazzoni
lt;http://gpsd.berlios.de/>. The GPRS/GSM modem is just a "normal" modem that you can use through normal PPP connections. For SMS, they can typically be sent by sending specific AT commands to the GSM modem. Cheers, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, re

Re: configuration of NFS root file system

2009-11-13 Thread Thomas Petazzoni
ages :-) Sincerely, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FA

Re: max throughput achievable with outb()

2009-09-30 Thread Thomas Petazzoni
through this bus. One outb() probably requires several (if not many) clock ticks. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with &qu

Re: max throughput achievable with outb()

2009-09-30 Thread Thomas Petazzoni
ices can only be programmed through PIO. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl

Re: Cannot open from user space a misc device - why ?

2009-02-24 Thread Thomas Petazzoni
93 which does 823 if (!open && f->f_op) 824 open = f->f_op->open; 825 if (open) { 826 error = open(inode, f); 827 if (error) 828 goto cleanup_all; 829 } (ouf) Sincerly, Thomas -

Re: symbol table....

2008-12-28 Thread Thomas Petazzoni
7;t been installed in /lib/modules//. But again, please read Linux Kernel in a Nutshell, or at least the relevant parts of it, to at least get a basic understanding of what's going on. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consultin

Re: Linux on Bochs

2008-12-27 Thread Thomas Petazzoni
ing gcc might be complicated. I would suggest not to try this for the moment, and stick with available binary packages. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this

Re: Linux on Bochs

2008-12-27 Thread Thomas Petazzoni
thout the need to compile it. But again, why do you want to use Bochs and not Qemu ? (It seems like you didn't read my previous email...) Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Thomas Petazzoni
Le Fri, 26 Dec 2008 15:44:28 +0300, "Denis Borisevich" a écrit : > When I call request_irq() with IRQF_SHARED as an argument I get > -EINVAL. Any ideas? In request_irq(): if ((irqflags & IRQF_SHARED) && !dev_id) return -EINVAL; Sincerly,

Re: Driver for TV card

2008-12-26 Thread Thomas Petazzoni
. Is there any one who can guide me where to > start from? LIRC <http://www.lirc.org/>. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email

Re: Unknown symbols...

2008-12-26 Thread Thomas Petazzoni
smod. modprobe will automatically load the required dependencies. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kerne

Re: Howto acquire shared interrupt line?

2008-12-26 Thread Thomas Petazzoni
SK)) { old_name = old->name; goto mismatch; } The AHCI interrupt is registered with IRQF_SHARED (at least in recent kernels, I didn't check in 2.6.24). Make sure you also register your handler with IRQF_SHARED in the flags. If so, then th

Re: Linux on Bochs

2008-12-26 Thread Thomas Petazzoni
r base than Bochs, and is actively maintained. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar

Re: How to start with network development in Linux Kernel ?

2008-11-11 Thread Thomas Petazzoni
.clemson.edu/~westall/853/notes/ http://oreilly.com/catalog/9780596002558/ Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscrib

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Thomas Petazzoni
at compile time by depmod, which extracts these informations from the .ko files. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubs

Re: Where the modules for found PCI devices is loaded?

2008-10-22 Thread Thomas Petazzoni
probe travels through the modules.alias file and loads the corresponding module. Once loaded the module tells the kernel that it handles PCI devices identified by some IDs, and its ->probe() method gets called. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded

Re: Automatic USB drive detection/Disconnection in user application!!!

2008-09-23 Thread Thomas Petazzoni
markup for a Python version of this. If your system already uses D-Bus and HAL, then clearly, this is the best solution. If your system only relies on udev or mdev, then the solution proposed by Matthias Kaehlcke (custom udev rules) is good. Sincerly, Thomas -- Thomas Petazzoni, Free Electron

Re: How to find my usb storage device mount point

2008-09-12 Thread Thomas Petazzoni
not the best place to have such discussion. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" t

Re: How to find my usb storage device mount point

2008-09-11 Thread Thomas Petazzoni
d from Python, thanks to [2]. Sincerly, Thomas [1] http://friky.svn.sourceforge.net/viewvc/friky/friky2/trunk/friky2/usbkey.py?revision=138&view=markup [2] http://pyinotify.sourceforge.net/ -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, train

Re: kernel build question

2008-09-11 Thread Thomas Petazzoni
rently loaded character and block drivers. Better source of informations are dmesg, lspci and lsusb. Basically, you need to know your hardware, and possibly compile and boot the kernel several times until you select the correct set of options. There's no magical recipe I can give you. Thom

Re: Why EXPORT_PER_CPU_SYMBOL?

2008-09-11 Thread Thomas Petazzoni
; > > What is the rational behind exporting per CPU symbol? Export per-cpu variables <http://lwn.net/Articles/22911/> to modules ? current_task is a per-cpu variable: DEFINE_PER_CPU(struct task_struct *, current_task) = &init_task; Thomas -- Thomas Petazzoni, Free Electrons Kernel,

Re: kernel build question

2008-09-10 Thread Thomas Petazzoni
ELF support, drivers, filesystem, network, etc. See <http://www.kroah.com/lkn/> for more details about this. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this li

Re: kernel build question

2008-09-09 Thread Thomas Petazzoni
help. Am i making > any sense at all? In /boot, you usually have a file named config- that contains the configuration of the kernel. You can use it to compile a newer kernel version (I usually copy this file to .config in the new kernel source tree, and run make oldconfig). Thomas -- Thomas P

Re: kernel build question

2008-09-09 Thread Thomas Petazzoni
lists the registered majors by block device driver and character device drivers. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsu

Re: end_request() deprecated, which one should be used ?

2008-09-02 Thread Thomas Petazzoni
ed to keep current_nr_sectors sane Which confuses me quite a lot. Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "un

Re: end_request() deprecated, which one should be used ?

2008-09-02 Thread Thomas Petazzoni
ely end the request, but simply move to the next segment (changing rq->buffer, rq->sector, etc.). How does it work ? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To un

end_request() deprecated, which one should be used ?

2008-09-01 Thread Thomas Petazzoni
nd_request() is deprecated, I suspect that the goal is to deprecate all end_*_request() functions as well, is it correct ? If so, is that correct that one should use blk_end_request() when the queue lock is not held, and __blk_end_request() if the queue lock is already held ? Thanks! Thomas -- Thomas

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
achieve, so I don't see how we could tell you how you should do it. And don't tell us that you wan't to create and manage userspace processes, tell us why you want to do that. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, co

Re: How to enter v86 and execute my program?

2008-09-01 Thread Thomas Petazzoni
er, most people are using a high-lever library like DirectFB, which makes the use of the framebuffer much easier. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe fr

Re: GPS Application on Linux

2008-09-01 Thread Thomas Petazzoni
> ? 2. Any standard GPS Framework ? You should probably have a look at gpsd, http://gpsd.berlios.de/, which contains a library called libgps (see http://gpsd.berlios.de/libgps.html). Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consultin

Re: Spawning and managing userprocess from kernel module

2008-09-01 Thread Thomas Petazzoni
ations with your kernel module. BTW, we could better help you if you described what you are trying to do exactly. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe

Re: struct request and rq->buffer question

2008-08-29 Thread Thomas Petazzoni
Le Fri, 29 Aug 2008 10:51:10 +0200, Thomas Petazzoni <[EMAIL PROTECTED]> a écrit : > So, who is doing the bounce buffering of the bio page when it's stored > in ZONE_HIGHMEM ? Is it safe for a block driver to blindly use > rq->buffer without knowing if the bio's page i

Re: Syscalls in module

2008-08-29 Thread Thomas Petazzoni
Le Fri, 29 Aug 2008 14:17:18 +0530, "Rohit Sharma" <[EMAIL PROTECTED]> a écrit : > I have created a module in which i am trying to create file. http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedde

struct request and rq->buffer question

2008-08-29 Thread Thomas Petazzoni
M ? Is it safe for a block driver to blindly use rq->buffer without knowing if the bio's page is in HIGHMEM or not ? Thanks, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To un

Re: Makefiles and make

2008-08-29 Thread Thomas Petazzoni
> affect builds if not assigned to the present variables? This question is not related to the Linux kernel. Please ask on a more appropriate list. (But anyway, you probably want to read the documentation of make, automake and autoconf to get some informations). Sincerly, Thomas -- Thom

Re: Sleep methods in kernel

2008-08-28 Thread Thomas Petazzoni
ges the task state to TASK_INTERRUPTIBLE or TASK_UNINTERRUPTIBLE: the scheduler will not wake up until another task or interrupt explicitly wakes you up using wake_up(). For more details, read page 13 and following of http://lwn.net/images/pdf/LDD3/ch06.pdf. Sincerly, Thomas -- Thomas Peta

Re: Resetting PCI devices

2008-08-28 Thread Thomas Petazzoni
glists/>). However, be prepared to be ask to test with a more recent kernel. Kernel developers don't like to debug already fixed bugs. Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To

Re: Question regarding process creation

2008-08-18 Thread Thomas Petazzoni
the stack that is being used. Does that clarify your question ? Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies

Re: [embedded platform] kernel questions

2008-08-18 Thread Thomas Petazzoni
Cos and Linux architectures I guess are > quite different ? Don't know about uCos, so I can't tell. Anyway you also need to make sure that the license of your uCos drivers is GPLv2, another compatible license, or that you are the author of these drivers and that you can re-license them under

Re: what is "unpack_to_rootfs()" unpacking, and where is it putting it?

2008-08-06 Thread Thomas Petazzoni
y by the end of the month. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PRO

Re: JFFS2 issues

2008-08-06 Thread Thomas Petazzoni
vid Woodhouse (that you Cc'ed) will certainly answer your question. You probably should have Cc'ed the [EMAIL PROTECTED] list as well. Hope this helps, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free

Re: What is a sleeping spin locks?

2008-08-05 Thread Thomas Petazzoni
.pdf Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Ple

Re: bug in kernel

2008-07-31 Thread Thomas Petazzoni
lude/linux/init_task.h#L151 for the definition of this very special task. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email with &quo

Re: creating /dev/console

2008-07-31 Thread Thomas Petazzoni
Le Thu, 31 Jul 2008 13:23:18 +0200, Hinko Kocevar <[EMAIL PROTECTED]> a écrit : > I would like my kernel to create /dev/console device entry if one is > not present on root filesystem. Looks odd that you need something like this. Why not using an initramfs instead ? Sincerly, Thoma

Re: ext2_find_near

2008-07-31 Thread Thomas Petazzoni
source code comment really, > could perhaps still be useful. Wikipedia has a page about this, <http://en.wikipedia.org/wiki/Cache_coloring>. Fairly limited, though. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training a

Re: perfmon2 Installation error

2008-07-31 Thread Thomas Petazzoni
serspace program, so your question probably doesn't belong on kernelnewbies. Moreover, this question is too specific and would probably be more relevant on pfmon's mailing list. See <http://www.hpl.hp.com/research/linux/perfmon/mail.php4> Sincerly, Thomas -- Thomas Petazzoni, Free El

Re: PCI DMA and security

2008-07-31 Thread Thomas Petazzoni
mley's article has more detail about DMA, <http://www.linuxjournal.com/node/7104/print>. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send an email wi

Re: Read/Write sequence

2008-07-28 Thread Thomas Petazzoni
e BIO_RW_BARRIER flag set in the bi_rw field of the bio structure. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com signature.asc Description: PGP signature

Re: Recommended site: http://tuxology.net/

2008-07-28 Thread Thomas Petazzoni
ef, have been inspired by the training materials of Free-Electrons (http://www.free-electrons.com), freely available under the Creative Commons BY-SA license (http://free-electrons.com/training). Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, co

Re: about the address of the variable

2008-06-23 Thread Thomas Petazzoni
res. The stack address that you see is a virtual address, as are all the addresses that you can see in /proc/[pid]/maps. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com signature.asc Description: PGP signature

Re: kmalloc causing kernel panic

2008-06-16 Thread Thomas Petazzoni
p. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com signature.asc Description: PGP signature

Re: Help needed on bzImage

2008-06-16 Thread Thomas Petazzoni
etup.bin OBJCOPY arch/x86/boot/compressed/vmlinux.bin GZIParch/x86/boot/compressed/vmlinux.bin.gz LD arch/x86/boot/compressed/piggy.o LD arch/x86/boot/compressed/vmlinux OBJCOPY arch/x86/boot/vmlinux.bin BUILD arch/x86/boot/bzImage Sincerly, Thomas -- Thomas Petaz

Re: Deciphering Call Trace details

2008-06-16 Thread Thomas Petazzoni
exactly caused > kernel to panic ? Yes. See Documentation/oops-tracing.txt for an introduction. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com signature.asc Description: PGP signature

Re: create_proc_info_entry

2008-06-16 Thread Thomas Petazzoni
d a good thing anymore: tell us about what your entry is, and we can tell you where to put it. For debugging entries for example, you should use debugfs, which is specifically designed for that and much easier to use. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers and embed

Re: Understanding the sockets system

2008-03-17 Thread Thomas Petazzoni
network stack at http://www.cs.clemson.edu/~westall/853/notes/. It may not be completely uptodate, but at least gives the general idea. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: __initdata query

2008-03-15 Thread Thomas Petazzoni
ollowing line is executed: 2145 module_free(mod, mod->module_init); Which frees the init code and data. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: SMP and ACPI.

2008-03-15 Thread Thomas Petazzoni
Le Sat, 15 Mar 2008 17:27:30 +0530, "Pranav Peshwe" <[EMAIL PROTECTED]> a écrit : > Suggestions gladly welcome. Report the bug to [EMAIL PROTECTED] Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/train

Re: SMP and ACPI.

2008-03-15 Thread Thomas Petazzoni
y the latest 2.6.25-rc, and see if the problem still exists. With that information, report a bug to [EMAIL PROTECTED], mentionning the kernel versions with which your machine is working, the kernel versions with which it doesn't work, the model of your motherboard and the kernel configuration

Re: __initdata query

2008-03-15 Thread Thomas Petazzoni
it should not be marked __initdata. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: unresolved symbol Problem

2008-02-19 Thread Thomas Petazzoni
Le Tue, 19 Feb 2008 09:06:56 +0100, Thomas Petazzoni <[EMAIL PROTECTED]> a écrit : > It's a program, it's a kernel module. Of course, read: « It's *NOT* a program, it's a kernel module » Sorry for the confusion, Thomas -- Thomas Petazzoni, Free Electrons

Re: unresolved symbol Problem

2008-02-19 Thread Thomas Petazzoni
d "program", I suspect that you didn't use the proper compilation mechanism for kernel modules. See http://lxr.free-electrons.com/source/Documentation/kbuild/modules.txt). Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-e

Re: What is vDSO?

2008-02-15 Thread Thomas Petazzoni
nel. > 4881d000-4896b000 r-xp 03:02 7040012/lib/libc-2.6.so > 4896b000-4896d000 r--p 0014e000 03:02 7040012/lib/libc-2.6.so > 4896d000-4896e000 rw-p 0015 03:02 7040012/lib/libc-2.6.so Code region, read-only data region, writable data region. Again, see "reade

Re: udev problems with cdev_add()

2008-02-14 Thread Thomas Petazzoni
n "udevmonitor --env" before loading your kernel module, and watch the events. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: SATA driver

2008-02-11 Thread Thomas Petazzoni
st (which as stated by the MAINTAINERS file, is the mailing list of choice for discussions about the SATA subsystem). Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: Use of IRQF_DISABLED along with IRQF_SHARED

2008-02-11 Thread Thomas Petazzoni
n the already existing handler for the same IRQ must also accept to be shared. It also checks that the trigger flags are the same for all handlers sharing the same IRQ line, but doesn't check the IRQF_DISABLED flag. Maybe you could raise attention on this issue on the LKML by sending a p

Re: Is there a way I can check from a kernel module if a device file exists ?

2008-02-11 Thread Thomas Petazzoni
reated manually, or are created automatically by udev [1]. Instead of trying to mess up with device files in the kernel, you should probably configure udev instead. Sincerly, Thomas [1] http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html -- Thomas Petazzoni, Free Electrons Free Embedd

Re: Module.symvers Problems

2008-02-11 Thread Thomas Petazzoni
in the directory of module A. Then you must copy it to the directory of module B, and then compile module B. See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=040fcc819a2e7783a570f4bdcdd1f2a7f5f06837 for more informations. Sincerly, Thomas -- Thomas Pet

Re: copy to/from user with irq disabled

2008-02-07 Thread Thomas Petazzoni
g addressed might not be currently present in memory, and the virtual memory sub- system can put the process to sleep while the page is being transferred into place. This happens, for example, when the page must be retrieved from swap space. » Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free

Re: Module.symvers ?????????

2008-01-29 Thread Thomas Petazzoni
trons.com/source/Documentation/kbuild/modules.txt#442 for more informations. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: Processes' kernel stack

2008-01-29 Thread Thomas Petazzoni
tack has a fixed size, of either 8 Kb or 4 Kb on x86. Of course, kernel threads only have a kernel stack, they don't need a user stack. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: FXOEM_OpenChannel: error 116

2008-01-25 Thread Thomas Petazzoni
is it require to change ifdef CONFIG_DEVFS_FS to > CONFIG_UDEV ??? Without seeing the code, it's fairly impossible to answer your question. The answer is probably "no", because the API has probably changed, but we can't tell without looking at the source. Can you post a

Re: x86 pages, page tables, and page table entries

2008-01-23 Thread Thomas Petazzoni
ess. Look at the code of lookup_address() : 034 if (pmd_large(*pmd)) 035 return (pte_t *)pmd; Note that I'm not sure, it's just a quick idea. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED] Free Electrons http://free-electrons.com signature.asc Description: PGP signature

Re: Question on Memory Leaks in Module

2008-01-23 Thread Thomas Petazzoni
You can learn more about it at http://www.procode.org/kmemleak/ and http://lwn.net/Articles/187979/. However, by reading lib/Kconfig.debug, I just discovered the CONFIG_SLAB_LEAK option, which seems to indicate that there is some sort of leak detector for the slab allocator, but I've never tried it. Sinc

Re: Question on Memory Leaks in Module

2008-01-23 Thread Thomas Petazzoni
is intelligent enough to check and free those memory > buffers during unload of the module ? No, there isn't such a mechanism in the Linux kernel. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More

Re: Help required in understanding assembly code

2008-01-22 Thread Thomas Petazzoni
es, how to interpret it? Take the Intel Developer manual, volume 1 (available at http://www.intel.com/products/processor/manuals/), page 78. It describes the contents of the EFLAGS register. Sincerly, Thomas -- Thomas Petazzoni, Free Electrons Free Embedded Linux Training Materials on http://free-electrons.com/training (More than 1500 pages!) signature.asc Description: PGP signature

Re: x86 pages, page tables, and page table entries

2008-01-21 Thread Thomas Petazzoni
s of the second page, but just some random part of the mem_map[] array. I'd say you're making a confusion between struct page addresses and the page address itself. Use page_address() to convert a struct page address to the real page virtual address. Sincerly, Thomas -- Thomas Petazzoni, [E

Re: A quick question on VM

2008-01-12 Thread Thomas Petazzoni
ory for the first 896 MB of RAM. Accessing the address (x + PAGE_OFFSET) will in fact access physical address x. For more information about Linux Virtual Memory management: www.informit.com/content/images/0131453483/downloads/gorman_book.pdf Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECT

Re: Ext3 layout and I/O performace

2007-12-27 Thread Thomas Petazzoni
e center. Because the disk rotation speed is constant, and the information density is constant, the raw performance of the disk is not the same for all cylinders. The performance degradation can be up to 50% when comparing performances at the beginning of the disk and at the end of the disk. Sin

Re: lock_kernel: why it is empty?

2007-12-27 Thread Thomas Petazzoni
kernel_lock.c is used). And CONFIG_LOCK_KERNEL is defined in init/Kconfig as follows: config LOCK_KERNEL bool depends on SMP || PREEMPT default y So it's true if you are on SMP *or* if you are using full-preemption (PREEMPT). Sincerly, Thomas -- Thomas Petazzoni, [EMAIL P

Re: flush_dcache_page()

2007-12-26 Thread Thomas Petazzoni
tion is empty. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 signature.asc Description: PGP signature

Re: change of inode->i_private to inode->u.generic_ip

2007-12-26 Thread Thomas Petazzoni
dy was using u.generic_ip, but nobody added more fields to the union, so the union was useless. It's basically a cleanup. Something kernel hackers can do because the Linux kernel internal interface is not stable: http://lxr.free-electrons.com/source/Documentation/stable_api_nonsense.txt. Sincerly,

Re: problems with sys_open

2007-12-26 Thread Thomas Petazzoni
Le Mon, 24 Dec 2007 15:42:05 +0100, "K.Choromanski" <[EMAIL PROTECTED]> a écrit : > I try to use sys-open in the kernel space and http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix

Re: Development environment for embedded linux

2007-12-26 Thread Thomas Petazzoni
n with). Do not hesitate to ask more specific questions on the list. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 signature.asc Description: PGP signature

Re: lock_kernel: why it is empty?

2007-12-26 Thread Thomas Petazzoni
ernel code is accessing shared data structures. So with full preemption, some kind of locking mechanism is used: lock_kernel(). Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org

Re: Is there a different process fofr building kernel modules for RHEL5 or FC 7?

2007-12-10 Thread Thomas Petazzoni
ly headers are needed. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 signature.asc Description: PGP signature

Re: Is there a different process fofr building kernel modules for RHEL5 or FC 7?

2007-12-10 Thread Thomas Petazzoni
If it doesn't, then your kernel headers/sources are not properly installed, or your kernel installation/packaging process is broken. Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fin

Re: How printk() buffering works?

2007-12-09 Thread Thomas Petazzoni
again, which means that it will look for a new log level. It explains the behaviour you are seing in your test. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 signature.asc Description: PGP signature

Re: [OT]: Understanding Linux kernel book

2007-12-07 Thread Thomas Petazzoni
et/images/pdf/LDD3/ch06.pdf, section « Introduction to Sleeping », page 14 of the PDF, page 148 of the book. It explains how wait queues work. Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.apr

Re: Slub versus slab

2007-12-07 Thread Thomas Petazzoni
drop-in replacement for SLAB, usable in all situations, with performances at least equal to the ones of SLAB, but with a better scalability. Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org

Re: enable_irq unbalanced?

2007-12-07 Thread Thomas Petazzoni
mean? > i tried to google but haven't found any clear hint. I'd say that it happens if you called enable_irq() two times without calling disable_irq() in-between. What kernel version are you using ? Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber,

Re: tiny modules

2007-12-07 Thread Thomas Petazzoni
er you think which is good for newbie) to share with me ? http://lwn.net/Kernel/LDD3/, chapter 2. Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D

Re: Memory mapping a UART

2007-12-07 Thread Thomas Petazzoni
all. So a mapping must be set up first. This is the role of the ioremap function, introduced in the section “vmalloc and Friends” in Chapter 1. The function is designed specifically to assign virtual addresses to I/O memory regions. » Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], htt

Re: sys_open fails with error 14

2007-12-07 Thread Thomas Petazzoni
Le Thu, 6 Dec 2007 16:18:24 +0530, "Sandeep K Sinha" <[EMAIL PROTECTED]> a écrit : > Am I logically wrong somewhere ?? Yes, you should not open files from the kernel: http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad Thomas -- Thomas Petazzoni, [EMA

Re: dma fails in re-insmod

2007-12-07 Thread Thomas Petazzoni
y). It can be a driver problem, but as you haven't posted your code source, nobody is able to tell. Are you doing the correct things at module exit ? Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APR

Re: What does __user do?

2007-12-07 Thread Thomas Petazzoni
ectly to pointers pointing to userspace part of the address space, but rather use the copy_from_user(), copy_to_user() functions or one of their variants. Thomas [1] http://www.kernel.org/pub/software/devel/sparse/ -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTE

Re: will changes in config file affect kernel modules

2007-11-29 Thread Thomas Petazzoni
on't have the src code of kernel > modules, i've become panic. I am using PPC arch m/c with 2.6.14.7 > kernel. It's normal. The modules must be re-compiled. For example, if you activate certain kernel-hacking options, things such as spinlock macros change a lot. Sincerly, T

Re: try_to_unmap_file( ) in non-linear memory region of the file

2007-11-28 Thread Thomas Petazzoni
> me some documents about this? Have a look at the comment before try_to_unmap_cluster(), it explains what cursor is. http://lxr.free-electrons.com/source/mm/rmap.c#745 Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, htt

Re: try_to_unmap_file( ) in non-linear memory region of the file

2007-11-27 Thread Thomas Petazzoni
oduction article: http://lwn.net/Articles/24468/ Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E 1624 F653 CB30 98D3 F7A7 -- To unsubscribe f

Re: where is asm directory in 2.6.11 ?!

2007-11-27 Thread Thomas Petazzoni
t you to read Documentation/kbuild/modules.txt completely to get a better idea of how external modules work. Sincerly, Thomas -- Thomas Petazzoni, [EMAIL PROTECTED], http://thomas.enix.org Jabber, [EMAIL PROTECTED] Toulibre, http://www.toulibre.org - APRIL, http://www.april.org Fingerprint : 0BE1 4CF3

Re: request structure

2007-11-17 Thread Thomas Petazzoni
e thing as "hard_nr_sectors", but only for the current bio being handled. Of course, it would be nice if a block device expert could confirm or infirm these informations. Sincerly, Thomas -- PETAZZONI Thomas - [EMAIL PROTECTED] http://{thomas,sos,kos}.enix.org - Jabber: [EMAIL PROTECTED

  1   2   >