you can use "sys_mprotect" call which is kernel space equ. of "mprotect" .
The implementation for the same can be found in "mm\mprotect.c".
anil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, June 11, 2001 10:29 AM
To: [E
[EMAIL PROTECTED] said:
> I have written a file system in 2.2.14 kernel similar to ramfs on 2.5
> kernel. I am able to register,mount and do file and directory
> operations. I tried to write a C program and compile it. The
> compilation gave me the object file. When i tried to run the object
> fi
> PPP generic driver version 2.4.1
Oooops sorry, I forgot to open my eyes this morning :p
On Sun, 10 Jun 2001 17:45:49 -0400
"Rose, Daniel" <[EMAIL PROTECTED]> wrote:
> I seem to have lots of problems w/ the 2.4 series and PPP..
> Everything compiles fine, and boots fine, but try and run ppp
diff -urN S6-pre2-fsync_no_super/include/linux/fs.h
S6-pre2-put_super/include/linux/fs.h
--- S6-pre2-fsync_no_super/include/linux/fs.h Sun Jun 10 18:36:27 2001
+++ S6-pre2-put_super/include/linux/fs.hSun Jun 10 18:39:04 2001
@@ -1320,7 +1320,6 @@
extern struct file_system_type *get_f
diff -urN S6-pre2-s_count/fs/inode.c S6-pre2-freeing/fs/inode.c
--- S6-pre2-s_count/fs/inode.c Sun Jun 10 12:45:04 2001
+++ S6-pre2-freeing/fs/inode.c Sun Jun 10 12:45:47 2001
@@ -258,23 +258,6 @@
__sync_one(list_entry(tmp, struct inode, i_list), 0);
}
-static inline int wait_
diff -urN S6-pre2-put_super/fs/dquot.c S6-pre2-dquot/fs/dquot.c
--- S6-pre2-put_super/fs/dquot.cThu May 24 18:26:44 2001
+++ S6-pre2-dquot/fs/dquot.cSun Jun 10 18:46:54 2001
@@ -325,7 +325,7 @@
memset(&dquot->dq_dqb, 0, sizeof(struct dqblk));
}
-void invalidate_dquots(kdev_
diff -urN S6-pre2-dquot/arch/parisc/hpux/sys_hpux.c
S6-pre2-drop_super/arch/parisc/hpux/sys_hpux.c
--- S6-pre2-dquot/arch/parisc/hpux/sys_hpux.c Fri Feb 16 20:46:44 2001
+++ S6-pre2-drop_super/arch/parisc/hpux/sys_hpux.c Sun Jun 10 18:38:23 2001
@@ -109,9 +109,11 @@
lock_kernel()
diff -urN S6-pre2-alloc_super/fs/inode.c S6-pre2-current/fs/inode.c
--- S6-pre2-alloc_super/fs/inode.c Sun Jun 10 19:09:35 2001
+++ S6-pre2-current/fs/inode.c Sun Jun 10 19:26:27 2001
@@ -357,11 +357,7 @@
spin_unlock(&inode_lock);
down_read(&s->s_umount);
Grr... 4 of 10, that is. Sorry.
On Mon, 11 Jun 2001, Alexander Viro wrote:
> diff -urN S6-pre2-fsync_no_super/include/linux/fs.h
>S6-pre2-put_super/include/linux/fs.h
> --- S6-pre2-fsync_no_super/include/linux/fs.h Sun Jun 10 18:36:27 2001
> +++ S6-pre2-put_super/include/linux/fs.h
diff -urN S6-pre2-put_super/fs/inode.c S6-pre2-s_count/fs/inode.c
--- S6-pre2-put_super/fs/inode.cSun Jun 10 12:25:34 2001
+++ S6-pre2-s_count/fs/inode.c Sun Jun 10 12:29:35 2001
@@ -339,30 +339,48 @@
spin_unlock(&inode_lock);
}
+/*
+ * Note:
+ * We don't need to grab a referen
diff -urN S6-pre2-freeing/fs/super.c S6-pre2-current/fs/super.c
--- S6-pre2-freeing/fs/super.c Sun Jun 10 12:45:47 2001
+++ S6-pre2-current/fs/super.c Sun Jun 10 12:53:15 2001
@@ -59,8 +59,6 @@
/* this is initialized in init/main.c */
kdev_t ROOT_DEV;
-int nr_super_blocks;
-int max_super_blo
diff -urN S6-pre2-s_active/fs/block_dev.c S6-pre2-fsync_no_super/fs/block_dev.c
--- S6-pre2-s_active/fs/block_dev.c Fri Jun 8 18:29:02 2001
+++ S6-pre2-fsync_no_super/fs/block_dev.c Sun Jun 10 12:13:03 2001
@@ -678,8 +678,10 @@
down(&bdev->bd_sem);
/* syncing will go her
OK. It works here(tm). I'm sending first 10 chunks - about 70% of locking
changes. That's a good intermediate point and I'd rather avoid doing too
large steps.
Contents (patches will go in separate postings):
1, Eliminates mnt_instances and s_mounts. Instead of it we add new field to
struct supe
diff -urN S6-pre2-mnt_instances/fs/super.c S6-pre2-s_active/fs/super.c
--- S6-pre2-mnt_instances/fs/super.cSat Jun 9 19:18:31 2001
+++ S6-pre2-s_active/fs/super.c Sun Jun 10 12:07:40 2001
@@ -388,7 +388,6 @@
spin_lock(&dcache_lock);
list_add(&mnt->mnt_list, vfsmntlist.prev);
diff -urN S6-pre2/fs/super.c S6-pre2-mnt_instances/fs/super.c
--- S6-pre2/fs/super.c Fri Jun 8 18:29:03 2001
+++ S6-pre2-mnt_instances/fs/super.cSat Jun 9 19:18:31 2001
@@ -386,19 +386,20 @@
mnt->mnt_parent = mnt;
spin_lock(&dcache_lock);
- list_add(&mnt->mnt_instanc
Hi,
Is there some kernel api to validate memory allocated using kmalloc.
Suppose, I allocate some memory using kmalloc and at a later point of
execution
I would like to validate if the memory allocated is not possibly freed by
some other thread.
Pls suggest a patch/pointers if any.
I also noticed
Are you using pppd 2.4 ?
On Sun, 10 Jun 2001 17:45:49 -0400
"Rose, Daniel" <[EMAIL PROTECTED]> wrote:
> I seem to have lots of problems w/ the 2.4 series and PPP..
> Everything compiles fine, and boots fine, but try and run pppd, and "This
> kernel as no support of PPP.."
> PPP is shown in dmesg
Hi,
Sorry to disturb you.
I have written a file system in 2.2.14 kernel similar to ramfs on 2.5
kernel. I am able to register,mount and do file and directory operations.
I tried to write a C program and compile it. The compilation gave me the
object file. When i tried to run the object file it ga
On 11 Jun 2001, John Fremlin wrote:
> Hi!
>
> Robin Cull and I have OPL3-SA2 isapnp cards. Sometimes we get assigned
> the wrong resource set. These cards do not take kindly to Alternate
> resources 0:1 Priority acceptable, in fact they are completely broke,
> so it is important to us that they g
I have been trying to figure out what is using my memory
My box has
320280K
>From boot I see
924 kernel
8224 reserved (initrd ramdisk?)
1488 hash tables (dentry, inode, mount, buffer, page, tcp)
from lsmod I caculate
876 for loaded modules
from proc/slabinfo
11992 for
On Sun, Jun 10, 2001 at 01:40:44AM -0300, Rik van Riel wrote:
> [Request For Testers ... patch below]
>
> Hi,
>
> during my holidays I've written the following patch (forward-ported
> to 2.4.6-pre2 and improved a tad today), which implements these
> improvements to page_launder():
>
> YMMV, ple
Taken from boot.msg:
Setting up network device eth1
insmod: Warning: /lib/modules/2.4.5-ac12/kernel/drivers/net/3c509.o symbol
for parameter nopnp not found
done
I've tried with and without ISA PNP support.
Any hints?
Thanks,
Dieter
-
To unsubscribe from this list: send the line "uns
> Daniel Phillips wrote:
> >
> > This is easy, just set the list head to the page about to be truncated.
>
> Works for me.
>
> --- linux-2.4.5/mm/filemap.cMon May 28 13:31:49 2001
> +++ linux-akpm/mm/filemap.c Sun Jun 10 11:29:19 2001
> @@ -235,12 +235,13 @@
[snip]
Works for me 12 times
>what happens is this : the other system reboots into windows o the nfs
>connection gets lost. however, what happens is that now the process
>table starts to fill with cron initiated mrtg calls and all get the DN
>state in ps aux.
The default is to do a hard-mount of NFS shares. Hardmounts hang
On Mon, 11 Jun 2001 [EMAIL PROTECTED] wrote:
>
> On 10 Jun, Linus Torvalds wrote:
>
> > I've not figured out why the ATI Xv stuff from gatos seems to not have
> > made it into the XFree86 CVS tree - it works better than much of the
> > Xv stuff for some other chipsets that _are_ in the CVS tree.
Hi!
Robin Cull and I have OPL3-SA2 isapnp cards. Sometimes we get assigned
the wrong resource set. These cards do not take kindly to Alternate
resources 0:1 Priority acceptable, in fact they are completely broke,
so it is important to us that they get their first choice ;-)
The trouble is that i
Hi,
I use gcc 2.96 from Mandrake 8.0 which according to
one guy in Mandrake team , is a snapshot from gcc 3.0
source tree.
compile 2.4.5-ac11 ; no problem, rub df is fine.
I will try with 2.4.5-ac13 now and see...
bye
=
S.KIEU
__
On 10 Jun, Linus Torvalds wrote:
> I've not figured out why the ATI Xv stuff from gatos seems to not have
> made it into the XFree86 CVS tree - it works better than much of the
> Xv stuff for some other chipsets that _are_ in the CVS tree.
> I imported it into the XFree86 CVS some months ago, i
On Sun, 10 Jun 2001, Mark Hahn wrote:
> > Everything compiles fine, and boots fine, but try and run pppd, and "This
> > kernel as no support of PPP.."
>
> normally a sign that user-space and kernel versions have diverged.
>
It was indeed a conflict w/ the ppp version i had installed. Upgraded t
On Sun, Jun 10, 2001 at 10:34:28PM +, Roeland Th. Jansen wrote:
> I have a network with a different linux system hat exports a few dirs to
> this system.
oops, this is 2.4.5. but happened before as well.
--
Grobbebol's Home | Don't give in to spammers. -o)
http://www.xs4
hi *
I have a network with a different linux system hat exports a few dirs to
this system.
what happens is this : the other system reboots into windows o the nfs
connection gets lost. however, what happens is that now the process
table starts to fill with cron initiated mrtg calls and all get th
>I realize that assembly is platform-specific. Being
>that I use the IA32 class machine, that's what I
>would write for. Others who use other platforms could
>do the deed for their native language.
Meaning we'd still need a good C implementation anyway
for the 75% of platforms nobody's going to
I seem to have lots of problems w/ the 2.4 series and PPP..
Everything compiles fine, and boots fine, but try and run pppd, and "This
kernel as no support of PPP.."
PPP is shown in dmesg:
PPP generic driver version 2.4.1
PPP Deflate Compression module registered
PPP BSD Compression module registe
I got the following oops with 2.4.5-ac12 after I issued "rmmod -a"
twice. I only notices the oops after I issued "rmmod -a" once which
might explan that ksymoops cannot name the module which caused the oops.
This is possibly ALSA-related (although I never had problems with
unloading alsa modules
Am Sonntag, 10. Juni 2001 22:02 schrieb Frank Davis:
> Dieter,
>I don't believe Alan has posted it yet...should be out soon.
> Regards,
> Frank
Sorry Frank,
I have it since 20.00 CEST (UT +0200).
It is on ftp.de.kernel.org/pub/linux/kernel/people/alan/2.4 since 17:42 CEST.
Regards,
ftp://ftp.kernel.org/pub/linux/kernel/people/alan/2.4/
Intermediate diffs are available from
http://www.bzimage.org
In terms of going through the code audit almost all the sound drivers still
need fixing to lock against format changes during a r
Dieter,
I don't believe Alan has posted it yet...should be out soon.
Regards,
Frank
-On Sunday, June 10, 2001 9:54 PM +0200 Dieter Ntzel
<[EMAIL PROTECTED]> wrote:
> Thanks,
> Dieter
> -
> To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in
> the body of a message
[EMAIL PROTECTED] said:
> I'm trying to do something a bit unorthodox: I want to share the
> address space between threads, but I want a certain region of the
> address space to be writeable only for a particular thread -- for all
> other threads this region is read-only.
UML does this in a some
Thanks,
Dieter
-
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/
On Sun, 10 Jun 2001, Stephen Mollett wrote:
> Greetings,
>
> When using ATAPI devices on a Promise Ultra100 (PDC20267), DMA is not
> enabled. Is this a bug in the pdc202xx driver or a limitation of the chipset?
>
> eg.
> With the drive attached to a VIA 82C686:
> hdb: ATAPI 40X CD-ROM CD-R/RW
Ok, new test. Apache, no keepalives. 85 requests/sec for a 10K file
128MB of RAM Processor is UP 700MHz Intel
vanilla 2.4.6-pre2
After everything settles down I have about 230-250 apache process running.
about 4% of CPU in user and roughly 6% in system.
Top shows:
18:12:47 up 59 min, 2 user
I see people on this list are using gcc-3 snapshots, so I thought I'd ask
advice here to narrow the problem down, before posting a gcc bug report.
I've been sitting on this for a couple of days without getting anywhere.
If I use a recent gcc snapshot (example : 4th June), I get an oops if I
try t
In article <[EMAIL PROTECTED]>,
Stelian Pop <[EMAIL PROTECTED]> wrote:
>
>> 2. Using the YUV overlay/expand hardware in the ATI card
>> (see www.gatos.org for X stuff for ATI for this)
>
>:s/www.gatos.org/www.linuxvideo.org/gatos/
>
>I took a quick look on their site but it seems that the
I'm trying to do something a bit unorthodox: I want to share the
address space between threads, but I want a certain region of the
address space to be writeable only for a particular thread -- for all
other threads this region is read-only.
I've considered several approaches. I'll only go over
On Thu, 7 Jun 2001, Nico Schottelius wrote:
> Or does anybody have a hp c1536 streamer and can help me ?
The manual for my C1536A says:
| The C1536A does not support termination on the device itself. Normally, the
| unit will not be placed at the end of a bus. However, if this is
| unavoidable,
Russell King wrote:
> Indeed. However, I don't believe user space should _rely_ on the flag.
> The reason is that there are network cards out there where the only way
> to get the link status _is_ to transmit a packet, even on 10baseT.
>
> PCNET is one example - the "oh my god my link is down" s
On Sun, Jun 10, 2001 at 04:58:42PM +0100, Alan Cox wrote:
> > Yes. But, even if I know how to program the mchip to output to
> > the video bus, there is something missing to enable overlay
> > (either in the mchip or in the ati video driver).
>
> It could be using the YUV digital inputs to the A
On Sunday 10 June 2001 03:31, Andrew Morton wrote:
> Daniel Phillips wrote:
> > This is easy, just set the list head to the page about to be truncated.
>
> Works for me.
It looks good, but it's black magic - it could use a comment along the lines
of:
/*
* Ensure at least one pass through all t
On Sun, Jun 10, 2001 at 12:06:08PM -0400, Ben LaHaise wrote:
> I doubt it's a change, more likely an undocumented requirement. Look at
> it another way: is the transmitter ready when the link is down? No.
> Why? Because if it does attempt to transmit a packet, it will get a
> transmit error, bu
On Sun, 10 Jun 2001, Alexander Viro wrote:
> Please, apply. What's happing here is simple - we set i_ino by
> PID and get something out of range of per-process inode. Confusion
> follows... Fix: move initializing ->u.proc_i.task past the check.
> Then proc_delete_inode() will be happy with
On Sun, Jun 10, 2001 at 03:39:26PM +0100, Alan Cox wrote:
> > The driver does not yet support overlay (no docs... :-( ), but it does =
> > support
>
> Are you sure the hardware supports overlay ?
Yes. But, even if I know how to program the mchip to output to
the video bus, there is something mi
Please, apply. What's happing here is simple - we set i_ino by
PID and get something out of range of per-process inode. Confusion
follows... Fix: move initializing ->u.proc_i.task past the check.
Then proc_delete_inode() will be happy with it.
Alois, Bryce - that ought to fix the o
Hello,
Sorry if this does not fit in the kernel list.
Does anybody know what happend to astor from kerneli.org?
I hope no bad things.
This since kerneli development is falling far behind without any notice in the
media.
We are developing for the real world also remember?! Many users of the kernel
I've put this driver on my web page at :
http://phaedra.apana.org.au/johna
This is not an attempt to do anything "official", merely point out
that it's there so that anyone wanting to develop a driver for a serial
type chip (or use that chip) has the option of a driver to start with.
I'm not a
>The fix is to kill the dead/orphaned swap pages before we get to
>swapoff. At shutdown time there is practically nothing active in
> ...
>Once the dead swap pages problem is fixed it is time to optimize
>swapoff.
I think fixing the orphaned swap pages problem will eliminate the
problem all to
[EMAIL PROTECTED] said:
> In message <[EMAIL PROTECTED]> you write:
> > [EMAIL PROTECTED] said:
> > > Good point. Spinlocks (with the exception of read-read locks, of
> > > course) and semaphores will deadlock on recursive use, while the BKL
> > > has this "process usage counter" recursion prote
I have reported before a kernel oops.
I now oberserved the same oops, with the same stack trace,
and a Dell Poweredge 1550 with dual CPU, 1 gb RAM, only
one disk and with little disk usage (most file activity via
NFS, where this system is a client).
The kernel is identical to the one reported be
In message <[EMAIL PROTECTED]> you write:
>
> [EMAIL PROTECTED] said:
> > Good point. Spinlocks (with the exception of read-read locks, of
> > course) and semaphores will deadlock on recursive use, while the BKL
> > has this "process usage counter" recursion protection.
>
> Obtaining a read loc
Hi!
> > > Can't it make mouse jump forward and back when user suddenly stops?
> >
> > In theory - yes. It doesn't seem to be a problem in practice, though.
> > It'll happen when a user slows down the mouse pointer motion faster than
> > exponentially (base 2). I haven't been able to stop that fa
Hi!
> > * Can the kernel part of CODA can be used for this?
>
> Not if you want to intercept and redirect every single read and write
> call. That's a whole other can of worms, and I'd advise you to let the
> userspace cachemanager to act as an NFS daemon. In my opinion, the Coda
> kernel module
I run kernel 2.4.5 on Dell Poweredge 2450 with 1.5 Gb RAM
and an onboard adaptec disk driver, dual pentium III 933 Mhz,
3 disks (160 mb transfer rate, 36 Gb each).
When I put the system under heavy load today (load level 15, about 20
httpd processes and three concurrent copies of large file tree
Zach Brown wrote:
>
> > I now have a patch that will output the hwv buttons pressed (up,
> > down, mute) to a new dynamically allocated misc device as letters
> > u, d, m, instead of directly modifying the mixer. Anyone want
> > that? It's more flexible than either the patch that's currently
>
In article <[EMAIL PROTECTED]> you wrote:
> Is this a change of requirements for ethernet drivers? Many other drivers
> do exactly the same (drop the first few packets while they're negotiating
> with a hub), unless they're using 10base2, even back to the days of 2.0
> kernels.
I think it would
My bad, I just looked at my notes again. It both went away and returned with
right around 500 processes.
-
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
Pleas
>
> That sounds like the machine just gets a working set
> larger than the amount of available memory. It should
> work better with eg. 96, 128 or more MBs of memory.
Now that I think about it a little more ... once I took it out of the
balancer and I got control back, I had over 500 apache kids
>
> That sounds like the machine just gets a working set
> larger than the amount of available memory. It should
> work better with eg. 96, 128 or more MBs of memory.
>
Right, I run them with 256M ... thought I would try to squeeze it a bit to
see what broke.
-
To unsubscribe from this list: sen
On Sun, 10 Jun 2001, George Bonser wrote:
> I took it out of the load balancer and regained control in
> seconds. The 15 minute load average showed somewhere over 150
> with a bazillion apache processes. Even top -q would not update
> when I put it back into the balancer. The load average and
> n
On Sun, Jun 10, 2001 at 01:54:13AM -0400, Ben LaHaise wrote:
> I doubt it's related to pump: a few times I've seen the 3c59x driver drop
> the first few transmit packets. Try loading the driver as a module and
> putting the whole modprobe ; ifconfig ; ping set of commands
> into a script and wat
>
> This patch has given excellent results on my laptop and my
> workstation here and seems to improve kernel behaviour in tests
> quite a bit. I can play mp3's unbuffered during moderate write
> loads or moderately heavy IO ;)
>
> YMMV, please test it. If it works great for everybody I'd like
> t
> > Sure, it's a pretty interaction. To be sure about the rule: any *_user
> > call can be treated as an implicit invocation of do_page_fault?
>
> As a first approximation, yes. The exception cases are certain callers
> that use kernel addresses and set_fs(KERNEL_DS) in order to "fake"
> argum
70 matches
Mail list logo