Re: [BK] upgrade will be needed

2005-02-14 Thread linux-os
somebody that once they use some program in one job, they can't use it again. What kind of "protection" are you claiming? Would you think that IBM could restrict persons who learned FORTRAN to never use FORTRAN again should they change jobs? Or that they need to wait some time-limit

Re: What is the purpose of GPIO pins.

2005-02-15 Thread linux-os
here it is. Regards, Krishna Chaitanya Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: sen

Re: [BK] upgrade will be needed

2005-02-15 Thread linux-os
ere was a lawsuit. Company lost (of course). Seems you can't hold somebody's intellectual property for ransom, at least in the United States. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bu

Re: NTFS - Kernel memory leak in driver for kernel 2.4.28?

2005-02-16 Thread linux-os
ary buffers is not interesting. [SNIPPED...] Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the

Re: Customized 2.6.10 kernel on a Compact Flash

2005-02-16 Thread linux-os
something you substituted for init 'returns' to the kernel! Everything is fine up to that point. Perhaps you don't have init's correct C-runtime library? You can make an init program with a main(), printf() and pause(), statically-linked. That would get you started. Cheers, Dick Joh

Re: rmmod while module is in use

2005-02-17 Thread linux-os
ne, .remove = __devexit_p(apedev_remove_one), }; Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the

"Needlessly global functions static...."

2005-02-17 Thread linux-os
Hello, Tell me. When all those kernel functions are made static how does one use a kernel debugger? How does the OOPS get decoded if nothing is in /proc/kallsyms or System.map??? Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is

Kernel modules query

2005-02-18 Thread linux lover
Hello, I want to know can a variable be exported by a linux kernel modules? How can i make a variable getting assigned in kernel module available to other kernel modules? regards, linux.lover. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [TTY] 2 points seems strange to me.

2005-02-18 Thread linux-os
length. What "standard C" are you using? Frank found a bug. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe

Re: [TTY] 2 points seems strange to me.

2005-02-18 Thread linux-os
for which sizeof(buf) is the size of a pointer. What kernel version are you looking at? I'm looking at 2.4.20 n_tty.c opost_block() and buf is a char array. -- Paul Fulghum Microgate Systems, Ltd. Ahaa! That's how the bug got introduced. It used to be an array and then it got changed

Some kernel source questions...

2005-01-26 Thread linux lover
, int flags) and its parameter usage??? regards, linux_lover __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe from this list: send the line "unsubscribe

Re: Fw: How to submit device ID into hid blacklist.

2005-01-26 Thread linux-os
On Tue, 25 Jan 2005 [EMAIL PROTECTED] wrote: Hi, I work for 3M Touch Systems (former MicroTouch) as software engineer and our main product is touchscreen as input device. Recently, we have released hid compliant devices (they work perfectly under Windows OS), but Linux hid driver does not

Re: don't let mmap allocate down to zero

2005-01-26 Thread linux-os
de. Make sure that we don't allocate memory all the way down to zero, so the NULL pointer never gets covered up with anonymous memory and we don't end up violating the C standard. Signed-off-by: Rik van Riel <[EMAIL PROTECTED]> --- linux-2.6.9/mm/mmap.c.nullmmap 2005-01-25 18

Re: i8042 access timings

2005-01-26 Thread linux-os
ffer the port I/O glitches that the old ISA-mapped devices did. You done' even need the "_p" in the port read/writes but we need to maintain compatibility with some old machines so I wouldn't change that. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (55

Re: don't let mmap allocate down to zero

2005-01-26 Thread linux-os
On Wed, 26 Jan 2005, Olivier Galibert wrote: On Wed, Jan 26, 2005 at 11:38:15AM -0500, linux-os wrote: On Wed, 26 Jan 2005, Rik van Riel wrote: With some programs the 2.6 kernel can end up allocating memory at address zero, for a non-MAP_FIXED mmap call! This causes problems with some programs

Re: don't let mmap allocate down to zero

2005-01-26 Thread linux-os
On Wed, 26 Jan 2005, Olivier Galibert wrote: On Wed, Jan 26, 2005 at 01:20:53PM -0500, linux-os wrote: On Wed, 26 Jan 2005, Olivier Galibert wrote: Given that the man page itself says that unless you're using MAP_FIXED start is only a hint and you should use 0 if you don't care things ca

Re: don't let mmap allocate down to zero

2005-01-26 Thread linux-os
On Wed, 26 Jan 2005, Rik van Riel wrote: On Wed, 26 Jan 2005, linux-os wrote: Wrong! A returned value of 0 is perfectly correct for mmap() when mapping a fixed address. The attached code shows it working The code that is patched is only run in case of a non-MAP_FIXED

Re: don't let mmap allocate down to zero

2005-01-26 Thread linux-os
On Wed, 26 Jan 2005, Bryn Reeves wrote: On Wed, 2005-01-26 at 17:34, Chris Friesen wrote: linux-os wrote: Does this mean that we can't mmap the screen regen buffer at 0x000b8000 anymore? How do I look at the real-mode interrupt table starting at offset 0? You know that the return value of mm

Re: Flashing BIOS of a PCI IDE card (IT8212F)

2005-01-27 Thread linux-os
On Thu, 27 Jan 2005, Rahul Karnik wrote: Hello, I was just wondering if it is possible to flash the BIOS of a PCI IDE card from within Linux. I have an OEM IT8212 card with a really old BIOS which the vendor does not support with a BIOS flashing tool. ITE Tech's flashing tool appears to work

Re: patches to 2.6.9 and 2.6.10 - make menuconfig shows "v2.6.8.1"

2005-01-27 Thread linux-os
SION = NAME=Woozy Numbat Put in the numbers you expect. Do `make clean ; make` all over again. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are

Re: Patch 4/6 randomize the stack pointer

2005-01-27 Thread linux-os
heers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" i

Re: Patch 4/6 randomize the stack pointer

2005-01-27 Thread linux-os
On Thu, 27 Jan 2005, Arjan van de Ven wrote: On Thu, 2005-01-27 at 14:19 -0500, linux-os wrote: Gentlemen, Isn't the return address on the stack an offset in the code (.text) segment? How would a random stack-pointer value help? I think you would need to start a program at a random offset, no

Re: don't let mmap allocate down to zero

2005-01-27 Thread linux-os
ually wrap to zero which you are denying. You must leave MAP_FIXED alone. Ignore the 'C' pedants, a pointer is properly initialized if it points to a mapped address. It would be absurd to have to make the CPU calculate the address at run-time just because you thew some rocks in the way

Re: thoughts on kernel security issues

2005-01-27 Thread linux-os
Pollard wrote: On Tuesday 25 January 2005 15:05, linux-os wrote: This isn't relavent [Stuff about the navy][...] The Navy [...] [...]Physical network topology[...] [...]sneakernet[...] [...]path[...] [...]internet[...] [...]hahaha[...] [...]NSA[...] [...]security clearance[...] I'll ask aga

Re: Verify system io addresses

2005-01-28 Thread linux-os
est your board(s) with no possibility of somebody entering wrong information. Jeff Fellin RFL Electronics [EMAIL PROTECTED] 973 334-3100, x 327 Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bus

help me to know when ethernet header added to packet by eth_header function

2005-01-28 Thread linux lover
advance. regards, linux_lover. __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [PATCH][I2C] ST M41T00 I2C RTC chip driver

2005-01-31 Thread linux-os
I'd appreciate an comments or to have it pushed into the kernel.org tree if its acceptable. Thanks, Mark Signed-off-by: Mark A. Greer <[EMAIL PROTECTED]> -- Cheers, Dick Johnson Penguin : Linux version 2.6.9 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for re

Re: [RFC] "biological parent" pid

2005-01-31 Thread linux-os
On Mon, 31 Jan 2005, Tim Schmielau wrote: The ppid of a process is not really helpful if I want to reconstruct the real history of processes on a machine, since it may become 1 when the parent dies and the process is reparented to init. I am not aware of concepts in Linux or other unices that

Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()

2005-02-01 Thread linux-os
f sizeof(long) here, you'll have unaligned memory accesses most of the time anyway, so it probably doesn't really matter. Thanks, -- Andreas Gruenbacher <[EMAIL PROTECTED]> SUSE Labs, SUSE LINUX GMBH This uses an GNU-ISM where you are doing pointer arithmetic on a pointer-to-void. NotG

Re: [PATCH 1/8] lib/sort: Heapsort implementation of sort()

2005-02-01 Thread linux-os
On Tue, 1 Feb 2005, linux-os wrote: On Tue, 1 Feb 2005, Andreas Gruenbacher wrote: On Mon, 2005-01-31 at 18:30, Paulo Marques wrote: Andreas Gruenbacher wrote: [...] static inline void swap(void *a, void *b, int size) { if (size % sizeof(long)) { char t; do

Re: [ANN] removal of certain net drivers coming soon: eepro100,?xircom_tulip_cb, iph5526

2005-02-01 Thread linux-os
8192 1 e100 <---! ipt_REJECT 9856 1 [Snipped...] Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction.

Re: Accelerated frame buffer functions

2005-02-02 Thread linux-os
re must be ioctls for accessing the accelerated functions, but after several hours of grepping and googling, I give up. :-( Any help is greatly appreciated! X-Windows already does this. Execute `/usr/bin/X11/x11perf -all` to watch. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machin

Joe User DOS kills Linux-2.6.10

2005-02-02 Thread linux-os
ernel, resulting in non-related problems. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the li

Re: Joe User DOS kills Linux-2.6.10

2005-02-02 Thread linux-os
ded to use `mkswap` again. On Wed, 2 Feb 2005, linux-os wrote: When I compile and run the following program: #include int main(int x, char **y) { pause(); } ... as: ./xxx `yes` ... the following occurs after about 30 seconds (your mileage may vary): Additional sense: Peripheral device write fault e

Re: Joe User DOS kills Linux-2.6.10

2005-02-03 Thread linux-os
On Thu, 3 Feb 2005, Andries Brouwer wrote: On Wed, Feb 02, 2005 at 01:23:43PM -0500, linux-os wrote: When I compile and run the following program: #include int main(int x, char **y) { pause(); } ... as: ./xxx `yes` ... the following occurs after about 30 seconds (your mileage may vary

Re: Please open sysfs symbols to proprietary modules

2005-02-03 Thread linux-os
the idea that started what Bas Laarhoven and Eric Youngdale developed. In principle, a software patent could probably have been obtained and I could have prevented Linux modules for 17 years. Instead, early motivation when Linus was still in college, was to help build an operating system that woul

Re: Joe User DOS kills Linux-2.6.10

2005-02-03 Thread linux-os
On Thu, 3 Feb 2005, Andries Brouwer wrote: On Thu, Feb 03, 2005 at 07:28:50AM -0500, linux-os wrote: I ran badblocks (all night). There were none. It's a SCSI disk and it requires chunks of DMA RAM for each write. The machine just croaks when it gets low on RAM and tries to write to SCSI

Can't remove a module because of new policy

2005-02-04 Thread linux-os
T So, I suppose this name is no longer valid?? If so, this means that hundreds of installed machines can't be updated in the field. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush.

Re: How to add source files in kernel

2005-02-04 Thread linux-os
On Fri, 4 Feb 2005, Rahul Jain wrote: Hi All, I am trying to add 2 new files (a .h and a .c) in the kernel. I copied my .h file in /include/linux and .c in /net/core. I then made the following change to the Makefile in /net/core. obj-y := sock.o skbuff.o iovec.o datagram.o scm.o split_helper.o

How to read file in kernel module?

2005-02-06 Thread linux lover
ux_lover. __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

Re: Query - Regarding strange behaviour.

2005-02-03 Thread linux-os
directory # chmod 755 bin # Fix protection # umount / After you have fixed things, you don't have to re-boot. Just execute: # exec /sbin/init auto Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cach

Re: Query - Regarding strange behaviour.

2005-02-03 Thread linux-os
lue of /usr and other directories under /usr/...but not of bin Maybe /usr is mounted read-only? Hmmm, are distros still 'slicing up' the root file-system? Good point! Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is

Re: Query - Regarding strange behaviour.

2005-02-03 Thread linux-os
Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body

Which types of functions are exported by kernel source?

2005-02-21 Thread linux lover
Hello, While browsing linux source code what i found that if function is defined as asmlinkage long sys_open(const char * filename, int flags, int mode) then its not exported to kenrel and thus not seen in /proc/ksyms. But if function in kernel source is not defined with asmlinkage then it

Re: uninterruptible sleep lockups

2005-02-22 Thread linux-os
is no way that "somebody else" can "fix" the task thread waiting with the MUTEX held. There has been some discussion that these hung states could be "fixed", but that's absolutely positively incorrect. If you have a MUTEX that "times out" or is other

Re: uninterruptible sleep lockups

2005-02-22 Thread linux-os
" to "fix" permanently-D-stated processes... which is completely different than "impossible." Most people here have little clue. It can't be done. I realize it would be extremely difficult if not impossible to do in the current linux architecture, but I find it h

Re: uninterruptible sleep lockups

2005-02-22 Thread linux-os
On Tue, 22 Feb 2005, Chris Friesen wrote: linux-os wrote: Now, somebody needs a resource. It executes down(&semaphore); once it gets control again, it has that resource. It attempts to use that resource through a driver. The driver waits forever. The resource is now permanently dorked --for

Re: uninterruptible sleep lockups

2005-02-23 Thread linux-os
On Wed, 23 Feb 2005, Bodo Eggert wrote: linux-os <[EMAIL PROTECTED]> wrote: You don't seem to understand. A process that's stuck in 'D' state shows a SEVERE error, usually with a hardware driver. Or a network filesystem mount to a no longer existing server or share. Bu

accept() fails with EINTER

2005-02-23 Thread linux-os
ver signal)? Setting signal(SIGIO, SIG_IGN) doesn't do anything useful. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-23 Thread linux-os
CONFIG_PCI_BIOS=y CONFIG_PCI_DIRECT=y Folks, This group was instrumental in helping me get my first-ever linux/PCI-bus device driver working last year, and I'm back for some more help if you are willing. I have a PCI card that generates an inte

Re: [PATCH] [i2c]: Fix some gcc 4.0 compile failures and warnings

2005-02-23 Thread linux-os
On Wed, 23 Feb 2005, Mickey Stein wrote: From: Mickey Stein Versions: linux-2.6.11-rc4-bk11, gcc4 (GCC) 4.0.0 20050217 (latest fc rawhide from 19Feb DL) gcc 4.0.x cvs seems to dislike "include/linux/i2c.h file" and others due to a current gcc 4.0.x change having to do with array de

Re: Help enabling PCI interrupts on Dell/SMP and Sun/SMP systems.

2005-02-24 Thread linux-os
Where are you getting IRQ5 from? You can't "hard-code" interrupts on PCI. kernel: ACPI: PCI interrupt :13:03.0[A] -> GSI 36 (level, low) -> IRQ 217 ^___ This is your IRQ It should be in dev->irq AFTER it's enabled. [SNIPPED...] Cheers,

Re: Possible bug on signal.h

2005-02-24 Thread linux-os
e or makes one available and maps it into the user's address-space before returning control to the user. Since the user doesn't own any free pages, it can't map in any. [SNIPPED...] Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : Al

Re: accept() fails with EINTER

2005-02-24 Thread linux-os
78122, PGP-key: 1F28D8AE Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscrib

Linux 2.6.10 sleep mode

2005-02-24 Thread linux-os
I put Linux-2.6.10 on a COMPAQ presario 1800 (bad choice). After a few minutes without any keyboard activity, it enters "sleep mode" and dies. I need to remove the battery and external power to be able to re-boot. Even after that, it needs to be rebooted twice because it will get to &quo

Re: Invalid module format in Fedora core2

2005-02-25 Thread linux-os
On Fri, 25 Feb 2005, Payasam Manohar wrote: Hai all, I tried to insert a sample module into Fedora core 2 , But it is giving an error message that " no module in the object" The same module was inserted successfully into Redhat linux 9. Is there any changes from RH 9 to Fedora C

M$ gets into autos!

2005-02-25 Thread linux-os
, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: calling call_usermodehelper from interrupt context

2005-02-27 Thread linux-os
On Sat, 26 Feb 2005, Payasam Manohar wrote: hai all, Is it possible to call call_usermodehelper from interrupt context. Of course not! I've seen this message before. Either it's a joke or you have no clue about what interrupts are. Cheers, Dick Johnson Penguin : Linux version 2.6.10

Re: System call problem

2005-02-27 Thread linux-os
and if it's negative, the positive equivalent is put into the global variable errno and then the return value is changed to -1. This is where the user-mode reference to errno occurs. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail h

Re: [patch 3/2] drivers/char/vt.c: remove unnecessary code

2005-02-28 Thread linux-os
npar++; - npar = 0; vc_state = ESgetpars; if (c == '[') { /* Function key */ vc_state=ESfunckey; -- Emmanuel Colbus Club GNU/Linux ENSIMAG - departement telecoms Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i

Re: user space program from keyboard driver

2005-02-28 Thread linux-os
On Mon, 28 Feb 2005, Payasam Manohar wrote: hai all, I am a newbie to kernel, I want to work on linux kernel modules. My task is to call a user program from keyboard driver under certain conditions. I know that we can call user program using call_usermodehelper(), but we can not call it

Network speed Linux-2.6.10

2005-03-01 Thread linux-os
98989 tx_single_collisions: 34534 tx_multi_collisions: 6779 tx_flow_control_pause: 122901 rx_flow_control_pause: 0 rx_flow_control_unsupported: 0 tx_tco_packets: 0 rx_tco_packets: 0 Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice

Re: Network speed Linux-2.6.10

2005-03-01 Thread linux-os
On Tue, 1 Mar 2005, Ben Greear wrote: linux-os wrote: Conditions: Intel NIC e100 device driver. Two identical machines. Private network, no other devices. Connected using a Netgear switch. Test data is the same thing sent from memory on one machine to a discard server on another, using TCP/IP

Re: Network speed Linux-2.6.10

2005-03-01 Thread linux-os
/full? Lee As previously stated, the through-put is awful. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this

some /proc understandings

2005-03-01 Thread linux lover
use same all above 4 functions??? regards, linux_lover __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

Patch Linux-2.6.11 jiffies.h uses shadowed variable names.

2005-03-02 Thread linux-os
Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction.--- linux-2.6.11/include/linux/jiffies.h.orig 2005-03-02 11:29:27.0 -0500 +++

Re: ext3 journal commit performance

2005-03-02 Thread linux-os
://mail.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ Cheers, Dick Johnson Penguin : Linux version 2.

Re: Network speed Linux-2.6.10

2005-03-02 Thread linux-os
my desk when not. In both cases, I have complete control of the "network". FYI I just upgraded to Linux-2.6.11 I'm going to repeat my experiment(s) later today after I put the same kernel on my other machine. Dr. Horst H. von Brand User #22616 c

Re: [PATCH/RFC] I/O-check interface for driver's error handling

2005-03-02 Thread linux-os
are building the event-list, not just when you queue it. Cheers, Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this li

Re: architecture to implement communication between static kernel with dynamic module

2005-03-03 Thread linux-os
n't do any good to use another name from another yahoo account. We all know that they are free and we can detect when the same kinds of questions and answers are repeated. Cheers, Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now ca

Re: I/O error propagation

2005-03-03 Thread linux-os
). So, you don't need to reinvent anything. If you have hardware errors they will be reported in /var/log/messages (or whatever) and if you are making a new driver, you are expected to comply with the same protocol. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (55

RE: The latest Microsoft FUD

2001-06-21 Thread Linux Bigot
All, Wouldn't microsoft be happy to see so many linux developers and extraordinaries while away their time on a trivial issue instead of coming up with other befitting replies. Not to mention, it reduces the SNR of kernel list pretty much. We all _love_ linux and let's focus on that

Re: select(2), usbserial, tty's and disconnect

2005-03-08 Thread linux-os
before you use select() or poll(). It was never resolved if the current behavior is a BUG. Nevertheless, it is unlikely that it will be fixed because there is the belief that it is NOT a BUG and even if it is a BUG, programs depend upon this BUG to work. Cheers, Dick Johnson Penguin : Linux version

Re: Question regarding thread_struct

2005-03-08 Thread linux-os
tack for a particular process, can't be resized? Stacks are never resized and, in fact, this isn't a Unix/Linux thing, it's just never done because it's stupid and, if necessary, is used to cover up something equally stupid, like excessive recursion. c) And for that m

Re: about interrupt latency

2005-03-08 Thread linux-os
On Tue, 8 Mar 2005, Francesco Oppedisano wrote: Hi, i'm trying to estimate the interrupt latency (time between hardware interrrupt and the start of the ISR) of a linux kernel 2.4.29 and i used a simple tecnique: inside the do_timer_interrupt i read the 8259 counter to obtain the elapsed tim

kernel mmap() and friends.

2005-03-08 Thread linux-os
nguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [

Mount on Linux-2.6.10

2005-03-08 Thread linux-os
was accessed. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "unsubscribe linux-k

Re: "remap_page_range" compile ERROR

2005-03-09 Thread linux-os
On Wed, 9 Mar 2005, Mukund JB. wrote: Hi all, I am running Redhat 9 Linux. I have problem with compiling the i810fb driver downloaded from Sourceforge site. I have D/W the i810fb patch "linux-i810fb-0.0.35.tar.bz2". When I run the make modules I get the following ERROR i810_main.c: 64

Re: [patch 1/1] unified spinlock initialization arch/um/drivers/port_kern.c

2005-03-09 Thread linux-os
spin-locks are allocated at compile-time. They might be allocated from kmalloc() on startup, probably in a structure, along with other so-called global data. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review b

Re: Can I get 200M contiguous physical memory?

2005-03-10 Thread linux-os
Therefore, you only need 128k of physical memory locked down at any one time. Cheers, Dick Johnson Penguin : Linux version 2.6.10 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. -

Re: Strange Linking Problem

2005-03-12 Thread linux-os
: gcc hello.o -o hello ./hello Hello world! What's wrong with the ld? Nothing at all. Where is _start: ? Remove the 'main' label and substitute _start: It is 'C' convention that programs start with main(). They really don't. With the Linux API, they start at _start: and

8GB large memory slowdowns (possible mtrr problem)

2001-05-10 Thread bob-linux
loss to make my MTRR look like the MTRR settings that was talked of. I have included 2 system boot logs as attachments to this letter. One is with the exactmap lines, the other is the kernel booting normally. I hope that this will cover anything I have not been able to cover. Any help is g

Re: repeat a function after fixed time period

2005-03-23 Thread linux-os
On Wed, 23 Mar 2005, Arjan van de Ven wrote: On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: static void start_timer(void) { if(!atomic_read(&info->running)) { atomic_inc(&info->running); same race. No such race at all. here there is one; you use add_timer

Re: repeat a function after fixed time period

2005-03-24 Thread linux-os
On Wed, 23 Mar 2005, sounak chakraborty wrote: --- linux-os <[EMAIL PROTECTED]> wrote: On Wed, 23 Mar 2005, Arjan van de Ven wrote: On Wed, 2005-03-23 at 15:56 -0500, linux-os wrote: static void start_timer(void) { if(!atomic_read(&info->running)) { atomic_inc(&

mmap/munmap on linux-2.6.11

2005-03-25 Thread linux-os
the DMA pages to be released. Cheers, Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice : All mail here is now cached for review by Dictator Bush. 98.36% of all statistics are fiction. - To unsubscribe from this list: send the line "uns

Re: [PATCH] no need to check for NULL before calling kfree() - fs/ext2/

2005-03-25 Thread linux-os
On Fri, 25 Mar 2005, Jesper Juhl wrote: (please keep me on CC) kfree() handles NULL fine, to check is redundant. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- linux-2.6.12-rc1-mm3-orig/fs/ext2/acl.c 2005-03-02 08:38:18.0 +0100 +++ linux-2.6.12-rc1-mm3/fs/ext2/acl.c 2005-03-

Re: [PATCH] remove redundant NULL pointer checks prior to calling kfree() in fs/nfsd/

2005-03-25 Thread linux-os
into the stack and calling a function. This is NOT a good change if you want performance. You really should reconsider this activity. It is quite counter-productive. Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> --- linux-2.6.12-rc1-mm3-orig/fs/nfsd/export.c 2005-03-21 23:12:41.0

Re: [PATCH] no need to check for NULL before calling kfree() -fs/ext2/

2005-03-26 Thread linux-os
On Sat, 26 Mar 2005, Arjan van de Ven wrote: On Fri, 2005-03-25 at 17:29 -0500, linux-os wrote: Isn't it expensive of CPU time to call kfree() even though the pointer may have already been freed? nope a call instruction is effectively half a cycle or less, the branch Wrong! predictor of th

Re: [PATCH] no need to check for NULL before calling kfree() -fs/ext2/

2005-03-27 Thread linux-os
On Sat, 26 Mar 2005, Marcin Dalecki wrote: On 2005-03-27, at 00:21, linux-os wrote: Always, always, a call will be more expensive than a branch on condition. It's impossible to be otherwise. A call requires that the return address be written to memory (the stack), using register indirection

Re: [PATCH] no need to check for NULL before calling kfree()-fs/ext2/

2005-03-27 Thread linux-os
On Sun, 27 Mar 2005, Arjan van de Ven wrote: On Sat, 2005-03-26 at 18:21 -0500, linux-os wrote: On Sat, 26 Mar 2005, Arjan van de Ven wrote: On Fri, 2005-03-25 at 17:29 -0500, linux-os wrote: Isn't it expensive of CPU time to call kfree() even though the pointer may have already been freed? n

source file unable to export function to kernel

2005-03-27 Thread linux lover
Hi, I have included this as myfile.c in /usr/src/linux-2.4.24/kernel. I included its entry in Makefile in export-objs. //sourcefile #define EXPORT_SYMTAB #include #include #include //contains prototypes for fun1 and fun2 #include char* fun1(char* str1) { } void fun2(char

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-28 Thread linux-os
l probably lose. -- Stev Shims are used everywhere to interface with strange, incompatible, or otherwise difficult to interface operating systems. If Linux is too difficult or incompatible, use a shim. In its simplest form, a shim might be a separate object containing only the GPL license, linked with t

Re: Strange memory problem with Linux booted from U-Boot

2005-03-28 Thread linux-os
ot some strange printed results?? On Mon, 28 Mar 2005, Ara Avanesyan wrote: Hi, I need some help on solving this strange problem. Here is what I have, I have a loadable module (linux.2.4.20) which contains a 2 mb static gloabal array. When I load it from linux booted via U-Boot the system crashes. Ever

Re: Can't use SYSFS for "Proprietry" driver modules !!!.

2005-03-29 Thread linux-os
On Mon, 28 Mar 2005, Steven Rostedt wrote: On Mon, 2005-03-28 at 19:56 -0500, Kyle Moffett wrote: On Mar 28, 2005, at 19:21, Steven Rostedt wrote: So you are saying that a stand alone section of code, that needs wrappers to work with Linux is a derived work of Linux? If there's some function

Re: PCI bus mastering question

2005-03-29 Thread linux-os
ven by destroying your work! Nevertheless, don't be frightened. Just be prepared. The best performing software you will ever write involves bus-mastering devices. It's well worth the effort. Cheers, Dick Johnson Penguin : Linux version 2.6.11 on an i686 machine (5537.79 BogoMips). Notice

Re: Accessing data structure from kernel space

2005-03-29 Thread linux lover
. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTE

Re: Delay in a tasklet.

2005-03-30 Thread linux-os
On Wed, 30 Mar 2005, Davide Rossetti wrote: Bouchard, Sebastien wrote: Hi, I'm in the process of writing a linux driver and I have a question in regards to tasklet : Is it ok to have large delay "udelay(1000);" in the tasklet? If not, what should I do? Please send the answer to me

Re: i386/x86_64 segment register issuses (Re: PATCH: Fix x86 segment register access)

2005-03-30 Thread linux-os
s that they should be treated as (Posix) uint32_t not uint16_t, even though the value will never exceed 8192. So if there are any "movw (mem), %ds" and "movw %ds, (mem)" in the code. The sizeof(mem) needs to be 32-bits and the 'w' needs to be removed. Otherwise, we are

Re: How to debug kernel before there is no printk mechanism?

2005-03-30 Thread linux-os
. An early '486 was brought up into a 32-bit protected-mode (non linux) operating system using these debugging methods. The first time I got to see some symbol written to the screen in protected-mode marked the start of a week-end- long party. Have fun! Cheers, Dick Johnson Penguin : Linu

Re: How to debug kernel before there is no printk mechanism?

2005-03-30 Thread linux-os
YI, a real-mode segment is a 16-byte entity, therefore there are many segment:offset combinations that can get you to 0x000b8000. On Wednesday 30 March 2005 04:47 pm, linux-os wrote: On Wed, 30 Mar 2005, krishna wrote: Hi all, How can one debug kernel before there is no printk mechanism in kernel. R

<    1   2   3   4   5   6   7   8   9   10   >