Re: generic_file_read function for kernel 2.6.23.11

2008-02-07 Thread Manish Katiyar
On Jan 11, 2008 10:10 AM, Manish Katiyar <[EMAIL PROTECTED]> wrote: > > On Jan 11, 2008 2:40 AM, ilya <[EMAIL PROTECTED]> wrote: > > hello, > > > > > I am unable to find the generic_file_read/write functions for the VFS > > > layer. Could anyone please help me with what should they be replaced > >

Re: Copy-on-Write

2008-02-07 Thread Brandon Philips
On 22:30 Thu 07 Feb 2008, Mulyadi Santosa wrote: > On Feb 6, 2008 12:49 PM, Rick Brown <[EMAIL PROTECTED]> wrote: > > So in linux, is a child run first or the parent? Can we rely on this > > information? > > Hm, this might be the answer: > http://lxr.linux.no/linux/kernel/sched.c#L1663 > > it say

Re: USB driver query

2008-02-07 Thread Brandon Philips
On 00:19 Sun 03 Feb 2008, Lal wrote: > I have developed a sample USB mass storage driver. Using this driver, > I can mount file system on my CF card, and can read/write small files > to/from CF card. However, the driver crashes while reading/writing > large files. > > Any hints would be appreciate

Re: git-pull conflict - how to solve it?

2008-02-07 Thread Brandon Philips
On 05:15 Tue 05 Feb 2008, Robert P. J. Day wrote: > i'm currently up to date WRT git and i haven't seen that kind of > merge conflict. if all else fails, just remove your entire working > copy (leaving the .git directory where it is) with: > > $ rm -rf * > > do the pull, then recheck everything

Re: git-pull conflict - how to solve it?

2008-02-07 Thread Peter Teoh
Brandon Philips wrote: On 05:15 Tue 05 Feb 2008, Robert P. J. Day wrote: i'm currently up to date WRT git and i haven't seen that kind of merge conflict. if all else fails, just remove your entire working copy (leaving the .git directory where it is) with: $ rm -rf * do the pull, then rech

Re: Basic question about IOCTL

2008-02-07 Thread Brandon Philips
On 19:32 Thu 07 Feb 2008, Mayank Kaushik wrote: > I am puzzled about what IOCTLs are and what they are used for. I could not > understand much from the the man page for ioctl. I was very puzzled about ioctls when I first started using Unix too. :) In any case, an ioctl is short for "I/O Control"

Re: git-pull conflict - how to solve it?

2008-02-07 Thread Peter Teoh
Robert P. J. Day wrote: On Tue, 5 Feb 2008, Peter Teoh wrote: After I issued "git pull" I got the following conflicts: remote: Counting objects: 3463, done. remote: Compressing objects: 100% (459/459), done. Indexing 2612 objects... remote: Total 2612 (delta 2236), reused 2528 (delta 2152)

Re: git-pull conflict - how to solve it?

2008-02-07 Thread Robert P. J. Day
On Thu, 7 Feb 2008, Brandon Philips wrote: > On 05:15 Tue 05 Feb 2008, Robert P. J. Day wrote: > > i'm currently up to date WRT git and i haven't seen that kind of > > merge conflict. if all else fails, just remove your entire working > > copy (leaving the .git directory where it is) with: > > >

Basic question about IOCTL

2008-02-07 Thread Mayank Kaushik
Hi everyone, I am puzzled about what IOCTLs are and what they are used for. I could not understand much from the the man page for ioctl. A description of what ioctls are used for (alongwith an example usage) would be very helpful. Thanks in advance, Mayank

Re: Page Faulting

2008-02-07 Thread Peter Teoh
Eduardo Júnior wrote: Hi, I would like to know in which file or files the page replacement policy is chosen. I mean, where is the part of the code that runs after page fault happens? In arch/x86/mm/fault.c: do_page_fault(). -- To unsubscribe from this list: send an email with "unsubscri

Page Faulting

2008-02-07 Thread Eduardo Júnior
Hi, I would like to know in which file or files the page replacement policy is chosen. I mean, where is the part of the code that runs after page fault happens? regards -- Eduardo Júnior :: twiki.dcc.ufba.br/~EduardoIhtraum linux user 423272

Re: copy to/from user with irq disabled

2008-02-07 Thread Martin Candurra
On Feb 7, 2008 12:32 PM, Mulyadi Santosa <[EMAIL PROTECTED]> wrote: > Hi... > > On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > > hi everyone, > > > > is it allowed to use the copy from/to userspace with irq disabled ? > > Hm, it might block...don't you think? > > regards, > >

Hello Dear ,

2008-02-07 Thread Rena Monibar
Hello Dear , I am Rena Monibar . I gone your email contact from Google.So i decide to contact you. i really want to have a good Business Relationship with you.Ifyou have interested to have communication with me, So that we can get to know each other and for me to send you my picture for you to kno

Re: copy to/from user with irq disabled

2008-02-07 Thread Thomas Petazzoni
Le Thu, 7 Feb 2008 18:19:07 +0200, "Ramagudi Naziir" <[EMAIL PROTECTED]> a écrit : > in iw_handler.h... and tried to understand why it is a problem.. This is a problem because copy_to_user() and copy_from_user() can block. So you're not allowed to use them in an atomic context (interrupt handler

Re: copy to/from user with irq disabled

2008-02-07 Thread Ramagudi Naziir
On Feb 7, 2008 6:04 PM, Martin Candurra <[EMAIL PROTECTED]> wrote: > > On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > > > is it allowed to use the copy from/to userspace with irq disabled ? > As Mulyadi said copy from/to user space may block (try to think that the > page you w

Re: Location of syscall wrappers

2008-02-07 Thread Mulyadi Santosa
Hi... On Feb 7, 2008 3:42 PM, Rajat Jain <[EMAIL PROTECTED]> wrote: > Who is supposed to provide syscall()?? C library? Where do I find its > definition (not declaration)? I think it could be the C kernel headers. I mean something like /usr/include/asm... > What is an application supposed to do

Re: copy to/from user with irq disabled

2008-02-07 Thread Scott Lovenberg
Mulyadi Santosa wrote: Hi... On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: hi everyone, is it allowed to use the copy from/to userspace with irq disabled ? Hm, it might block...don't you think? regards, Mulyadi. -- To unsubscribe from this list: send an email

Re: Time stamp on kernel crash file

2008-02-07 Thread Mulyadi Santosa
Hi... On Feb 6, 2008 11:45 AM, Vijeth Bhat <[EMAIL PROTECTED]> wrote: > Hi, >I have two doubts/questions. > 1. How to force a kernel panic / crash ? Ehm, by calling panic()? http://lxr.linux.no/linux/kernel/panic.c#L60 > 2. If I am dumping the crash in a file, can I change the time stamp of

Re: copy to/from user with irq disabled

2008-02-07 Thread Mulyadi Santosa
Hi... On Feb 7, 2008 9:17 PM, Ramagudi Naziir <[EMAIL PROTECTED]> wrote: > hi everyone, > > is it allowed to use the copy from/to userspace with irq disabled ? Hm, it might block...don't you think? regards, Mulyadi. -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbie

Re: Copy-on-Write

2008-02-07 Thread Mulyadi Santosa
Hi On Feb 6, 2008 12:49 PM, Rick Brown <[EMAIL PROTECTED]> wrote: > So in linux, is a child run first or the parent? Can we rely on this > information? Hm, this might be the answer: http://lxr.linux.no/linux/kernel/sched.c#L1663 it says: unsigned int __read_mostly sysctl_sched_child_runs_fir

Re: losetup query

2008-02-07 Thread Mulyadi Santosa
Hi... On Feb 6, 2008 10:06 PM, Nikhil Talpallikar <[EMAIL PROTECTED]> wrote: > Well thanks for the reply. > I actually wanted to know how does the /sbin/losetup command function, which > is what i am unable to find. I found the losetup.c in util-linux, but it > does not give me the whole idea. I s

Re: Location of syscall wrappers

2008-02-07 Thread Erik Mouw
On Thu, Feb 07, 2008 at 02:12:38PM +0530, Rajat Jain wrote: > Hi, > > > > > Use syscall(SYSTEM_CALL_NUMBER, arg1, arg2, arg3); > > > > _syscall3() macro are are not supported nowadays. > > > > http://lkml.org/lkml/2007/7/5/314 > > > > Who is supposed to provide syscall()?? C library? Where do

copy to/from user with irq disabled

2008-02-07 Thread Ramagudi Naziir
hi everyone, is it allowed to use the copy from/to userspace with irq disabled ? thank you all naziir -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to [EMAIL PROTECTED] Please read the FAQ at http://kernelnewbies.org/FAQ

MIssed interrupts

2008-02-07 Thread Rick Brown
Hi, If a particual IRQ line has been disabled (disable_irq()), what happens if the device on that IRQ line generates interrupt? Does it result in missed interrupt? And in case of Uniprocessor machine, what happens if interrupts are generated while spinlock_irq_save() etc? TIA, Rick -- To unsub

Re: Location of syscall wrappers

2008-02-07 Thread Sachin Gaikwad
On Feb 7, 2008 1:35 AM, Rajat Jain <[EMAIL PROTECTED]> wrote: > > Hi, > > If I remember correctly, there used to be syscall wrappers (_syscall3() etc) > in the kernel that could be used to make system calls > without any library support. I'm not able to locate them for i386. Where are > they? Us

Use of IRQF_DISABLED along with IRQF_SHARED

2008-02-07 Thread Rajat Jain
Hi, This is regarding the following code in kernel/irq/handle.c. Consider the case of a shared IRQ line, where two handlers are registered such that first handler does not specify IRQF_DISABLED, but the second one does. But it seems both the handlers will be called IRQs ENABLED (which is certa

RE: Location of syscall wrappers

2008-02-07 Thread Rajat Jain
Hi, > > Use syscall(SYSTEM_CALL_NUMBER, arg1, arg2, arg3); > > _syscall3() macro are are not supported nowadays. > > http://lkml.org/lkml/2007/7/5/314 > Who is supposed to provide syscall()?? C library? Where do I find its definition (not declaration)? What is an application supposed to do