Bakul Shah wrote this message on Sat, Mar 30, 2013 at 13:22 -0700:
On Sat, 30 Mar 2013 09:14:34 PDT John-Mark Gurney j...@funkthat.com wrote:
As someone else pointed out in this thread, if a userland program
depends upon this behavior, it has a race condition in it...
Thread 1
think I remeber another thread about this from a year or two ago,
but I couldn't find it... If someone finds it, posting a link would
be nice..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
:
From: John-Mark Gurney j...@funkthat.com
To: hack...@freebsd.org
Subject: looking for someone to fix humanize_number (test cases
included)
I'm looking for a person who is interested in fixing up humanize_number.
...
So I decided to write a test program to test
I'll work to get the code into the tree once we get it in a good state.
Please cc me as I'm not subscribed to -hackers.
Thanks.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
that one person recently was working on Intel's VT IOMMU and I
thought it was close to being committed, but I haven't been following
the work...
If any of these ideas sound feasible, I'd be more than willing to help
research/implement/test them.
--
John-Mark Gurney
, and I don't like it there, as no one knows about most of the
tools under there... Maybe if we had a man page that talked about the
tools available there it'd be more attractive...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done
that it will check the condition sometime
in the future...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
Victor Loureiro Lima wrote this message on Wed, Jul 25, 2007 at 12:14 -0300:
2007/7/24, John-Mark Gurney [EMAIL PROTECTED]:
Victor Loureiro Lima wrote this message on Tue, Jul 24, 2007 at 16:35
-0300:
2007/7/24, John-Mark Gurney [EMAIL PROTECTED]:
Daniel Molina Wegener wrote this message
.
#include sys/conf.h
uid == UID_ROOT
b) Can normal users look for system processes or kernel threads?
Yes, ps does this...
c) Can root look for system processes or kernel threads?
Yes, ps does this...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
Victor Loureiro Lima wrote this message on Tue, Jul 24, 2007 at 16:35 -0300:
2007/7/24, John-Mark Gurney [EMAIL PROTECTED]:
Daniel Molina Wegener wrote this message on Mon, Jul 23, 2007 at 20:52
-0400:
a) Is there any function or variable that tells me which is the
root user UID
our pci layer would save the state, which it might not if you write
directly to the config registers.)
You should also use bus_get_dma_tag for getting the parent tag when
creating your own tag w/ bus_dma_tag_create...
Can't think of any others right now...
--
John-Mark Gurney
for you? If it's
to save a copy to another buffer, why don't you load the final buffer
into bus_dma?
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd
out to make jumbo frames work
reliabily and depend upon people just using 1500 byte frames...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd
Erik Trulsson wrote this message on Wed, Jun 27, 2007 at 10:12 +0200:
On Tue, Jun 26, 2007 at 11:12:23PM -0700, John-Mark Gurney wrote:
[EMAIL PROTECTED] wrote this message on Tue, Jun 26, 2007 at 17:33 -0700:
I'm having poor luck trying to use NFS over a gigabit ethernet using
jumbo
of events?
I'm unsure what you mean by open and read events? Do you mean getting
an event when another process opens are file? or? As for read, they
work fine for sockets, as w/ select, files are always ready to read
even though they may block to read from disk...
--
John-Mark Gurney
Daniel Molina Wegener wrote this message on Mon, May 21, 2007 at 09:48 -0400:
On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote:
Daniel Molina Wegener wrote this message on Sun, May 20, 2007
at 18:31 -0400:
I'm coding an application using the kqueue facility, but
I see that I
over time..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
Ivan Voras wrote this message on Mon, May 07, 2007 at 20:12 +0200:
John-Mark Gurney wrote:
Ivan Voras wrote this message on Mon, May 07, 2007 at 18:39 +0200:
My proposal is to MIME-ify the Format fields, best presented in examples:
S,proc - x-struct/proc
S,xfile - x-struct/xfile
to deal w/
making their driver multithread safe...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
, and I'm real impressed with kqueue api. It was a little daunting
figuring out the kernel module side though.
If you feeling like extending kqueue(9) to be more helpful, I'm more
than willing to review and commit patches for it.
--
John-Mark Gurney Voice: +1 415 225
of kern.post.mk fixes the problem:
Thanks, committed the fix...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
for testing.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
David Xu wrote this message on Tue, Oct 17, 2006 at 17:17 +0800:
work in the past. Also rfork() does not allow you to specify user stack, you
have to add some tricky code to make it safe before new
thread really can do real work, [...]
That's why you use rfork_thread(3)...
--
John-Mark
knowlege of concurrent programming... You
can take a look at books on pthreads and other related matierals for
info on using locks...
If you figure out the licensing issues w/ the firmware, I'll import
the driver into FreeBSD...
--
John-Mark Gurney Voice: +1 415 225
module A when you load
module B, so that you don't have to type as much...
For my bktrau HDTV driver, I only have to load iic, bktrau, and bktr, as
each are their own modules, and the i2c bus module automaticly gets brought
in by either iic or bktr (as each depend upon the i2c bus)...
--
John-Mark
that don't exist and cause a fault...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman
Stanislav Sedov wrote this message on Mon, Aug 14, 2006 at 23:12 +0600:
On Mon, 14 Aug 2006 11:15:22 -0700
John-Mark Gurney [EMAIL PROTECTED] mentioned:
You should make a MD API for reading these out (if one doesn't already
exist) that handle the faulting for you, and then have your
://www.freebsd.org/cgi/man.cgi?query=bus_spaceapropos=0sektion=0manpath=FreeBSD+6.1-RELEASEformat=html
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers
John Baldwin wrote this message on Tue, Aug 08, 2006 at 13:42 -0400:
On Monday 07 August 2006 18:05, John-Mark Gurney wrote:
John Baldwin wrote this message on Mon, Aug 07, 2006 at 15:27 -0400:
sc-cfg_table.signature = letoh32(bus_read_4(sc-bar.res, 0));
sc-cfg_table.version = letoh16
of useful functions for writing a device
driver...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
Niki Denev wrote this message on Mon, Aug 07, 2006 at 22:03 +0300:
On Monday 07 August 2006 21:34, John-Mark Gurney wrote:
Because for the most part it is only suppose to be used by MD code...
The correct way to get device's memory is to use bus_alloc_resource_any...
Make sure you review
, there are the
_stream versions... The are useful for transfering data like disk
data that needs to maintain the same order...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
with
porting shell script code :)
Helping people not be portable w/ other Unixes like Solaris is something
we should not do... Can anyone name another major Unix besides Linux that
has the -a option?
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
does, kqueue will not work on tun...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman
driver for FreeBSD.
I haven't seen this. The only case that I can think of is due to
developers not having the hardware, or a need to use said hardware,
so nothing happens...
Do you have a list of hardware that has documntation available that
needs device drivers to be written?
--
John-Mark
files (like 2gb+) as the 10/15
minute timeout can be shorter than the time taken to generate a checksum
for the file... Though w/ faster cpu's these days, it's probably no
longer the case..
A number of years back, we used it to mirror 140GB of data between sites..
--
John-Mark Gurney
program) and it works really well.. We are no longer in
the age where we need the kernel to do everything for us...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
:
That is what the bus_space api is for... The method you propose is a
hack and not very useful for ensuring that your driver run on other
platforms...
--
??: John-Mark Gurney [mailto:[EMAIL PROTECTED]
: 2006??6??30?? 6:36
??: [EMAIL PROTECTED]
: freebsd
Gerald Heinig wrote this message on Fri, Jun 30, 2006 at 10:41 +0200:
On Fri, 2006-06-30 at 01:16 -0700, John-Mark Gurney wrote:
This has now been fixed by making the built in driver return a negative
value for the probe.. so your probe routine can return 0, and it will
win the probe
bar possition?
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd
has been done
already.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo
is accessed by bus_space_read_1 and so on
am i right sir?
Yep...
On 5/24/06, John-Mark Gurney [EMAIL PROTECTED] wrote:
william wallace wrote this message on Wed, May 24, 2006 at 15:48 +0800:
IN static device_method_t pci_methods[] = {
what is the freeBSD's magic to connect pci_read_config_method
$ uname -a
FreeBSD gate.funkthat.com 4.7-RELEASE FreeBSD 4.7-RELEASE #5: Tue Sep 9
02:05:39 PDT 2003 [EMAIL PROTECTED]:/usr/src/sys/compile/gate i386
Looks like the EEXIST is returning non-zero...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
not create a wrapper, and start at the highest requested, and slowly
work your way down as the requests are rejected.. since the number of
messages must be a power of two, it isn't than many rounds..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has
.
FreeBSD inherently dynamic in its device system. The hardest part of
adding hotplug support is programming the bridge. Adding new devices
to the tree is easy, but knowing when to add them is hard since you
have to write a bridge driver...
--
John-Mark Gurney
the table.. you could use bus_space_write_region to copy
the table from kernel memory to your device, or just write the updated
values...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
used instead of uint32_t? Aren't pointers always 32 bits
on a 32 bit machine?
You're confusing the type of the pointer w/ a pointer... These are
correct, please read a basic intro to pointers in C...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
...
/me just had a computer randomly crash due to this.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
of the patch, so had no clue that it was
necessary... I'll commit a similar patch shortly...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers
when
copying to a larger second disk, when compared to dd(1).
Though if you are using extended attributes, the dump/restore pair won't
transfer them... :(
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
found that you need to add a
MODULE_DEPEND to the module the provides the symbol...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org
detection of the different tuner types, and it'll be easier to make fixes
to the tuner drivers..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers
can't be ported over.
Thanks,
Naram Qashat
(Note: I'm not subscribed to the mailing list, so if anyone replies to
this,
please CC me to the response. Thanks.)
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All
why I started work on rewriting a allocated based upon the
paper so that it'd have a BSD license... I haven't worked on it much,
and now that jemalloc is here, who knows...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All
the process with pfind(9), and then you can use uio(9) to
transfer data into kernel space... Don't forget to PROC_UNLOCK the
struct once you are done referencing it.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have
) for this... You will get an extra argument
or two... but a wrapper script can handle that for you... Though you
need to have the daemon run in foreground mode, so that when it dies
init knows it did, and restarts it...
--
John-Mark Gurney Voice: +1 415 225 5579
All
programs into one binary...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo
abandoned it..
With a bit of work, ffsrecov.py can be taught this and handle both ufs1
and ufs2...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd
by the device are unmapped.. it
shouldn't be hard to test... the mapping should hold a reference to
the device until it's munmapped..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
Raaf wrote this message on Tue, Feb 07, 2006 at 01:42 +0100:
John-Mark Gurney wrote:
Raaf wrote this message on Mon, Feb 06, 2006 at 22:54 +0100:
Hi, i am working on a usb driver that allocates some memory when
the device is opened using malloc.
Now i want user processes to be able
-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send
cards
where the card can dump it directly into the userland buffer w/o having
to do the special page flipping thing we can do now...
definately some interesting ideas...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I
metadata. I had the same situation ~a month ago and gave up,
restoring from old backups. It will also probably panic on corrupted or
zeroed metadata, but at least it's on a readable disk...
Recovery can be possible with ffsrecov.py:
http://people.freebsd.org/~jmg/ffsrecov/
--
John-Mark
be called on them...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo
/papers/kqueue.pdf
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd
in order to
fulfill the reusement of data blocks?
If you are talking about in kernel land, take a look at zone(9)..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
with troubles like you have... you should make sure
to pass -B to fsck if you want to run fsck while the file system is
mounted... Though I've never done that manually (I let the rc scripts
handle that for me)...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
of your code around kevent calls, I could
better help you...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
), and our sh doesn't have that
feature...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org
/bin/bash doesn't exist on the system, as bash
is installed in /usr/local/bin/bash...
Please try with:
bash array.sh
instead, and see if that works..
On 11/30/05, John-Mark Gurney [EMAIL PROTECTED] wrote:
Jayesh Jayan wrote this message on Wed, Nov 30, 2005 at 02:39 +0530:
Below is the output
land, a device_t is a bus if it has one or more
children.. To put it more simply, all busses are devices...
As for your example of device_get_parent.. you don't realize that the
pci bus is also a device...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
).. and devclass(9)..
I'm not quite sure what you are asking here, but take a look at a bunch
of the other drivers... My zoran driver
(http://people.freebsd.org/~jmg/zoran.html) is both a driver, and a bus
for i2c...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I
platforms, since each platform may/can have a
different code address (though we try to keep them the same)...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
look at
my equation that I posted earlier, if you have a blocksize of 16384,
you end up with ~128TB as the max file size...
K M G T
(16384/8)^3*16384 / 1024 / 1024 / 1024 / 1024 == 128
--
John-Mark Gurney Voice: +1 415 225 5579
sizes (not file system sizes) due to the fact that the ufs_daddr_t
is smaller (32bits), means it can get more out of the indirect blocks
than UFS2 can... UFS1 can have files of 2^58 compared to UFS2's 2^55...
--
John-Mark Gurney Voice: +1 415 225 5579
All
John-Mark Gurney wrote this message on Sun, Nov 13, 2005 at 10:17 -0800:
as for the file size, The approximate max can be calculated by
(blocksize / sizeof(ufs2_daddr_t)) ^ 3 * blocksize
the real max would add in addition:
(blocksize / sizeof(ufs2_daddr_t)) ^ 2 * blocksize +
(blocksize
...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
name: /dev/tty.usbserial-FTC8P121, which is convient...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
Frank Mayhar wrote this message on Mon, Sep 26, 2005 at 16:11 -0700:
On Sun, 2005-09-25 at 21:23 -0700, John-Mark Gurney wrote:
Frank Mayhar wrote this message on Sat, Sep 24, 2005 at 20:26 -0700:
I've been using libufs as the I/O mechanism for my (heavy) modification
of sysutils/ffsrecov
up at:
http://people.freebsd.org/~jmg/ffsrecov/
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
..
Though it might be easier to search for the disklabel magic block
directly... It wouldn't be too hard to modify the -f to search for a
disklabel magic instead of superblock magic...
Good luck!
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has
...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
is sys/netinet/tcp_output.c
in the function tcp_output... but I'd highly recommend you look at ipfw
or divert sockets...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
Mike Meyer wrote this message on Thu, Jul 14, 2005 at 09:22 -0400:
passwd root
Except you have to know the root password for that to work.
root is never asked what the old password is...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has
done kernel, I'll solely target userland for the code now.
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
)...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
-locked instructions don't seem to avoid speculative reads either.
have you put a SFENCE between write A and write B? You never tell us
where you've tried to put the various fence instructions...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has
..
st = keta_kern_sendit(td, control_so,msg,0,0);
and possibly here...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing
-current should allow new code to use Giant...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org
the correct types when handling them...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org
..
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe
a Soekris, and is slightly larger than the PC-104 form
factor.. Right now I have it netbooting, but I need to figure out why
I have some ethernet issues... The code is in p4, though if people
are really interested, I can generate a patch...
--
John-Mark Gurney
Bernd Walter wrote this message on Thu, Mar 31, 2005 at 23:06 +0200:
On Thu, Mar 31, 2005 at 11:12:05AM -0800, John-Mark Gurney wrote:
Bernd Walter wrote this message on Thu, Mar 31, 2005 at 12:36 +0200:
But considered the small price distance to the smallest Soekris,
which runs FreeBSD
Bernd Walter wrote this message on Fri, Apr 01, 2005 at 00:54 +0200:
On Thu, Mar 31, 2005 at 02:33:48PM -0800, John-Mark Gurney wrote:
Bernd Walter wrote this message on Thu, Mar 31, 2005 at 23:06 +0200:
And the 4526 doesn't need regulated power plus has onboard ata flash.
also looks
.. then it'd just be pointless... :)
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org
to this list...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
It doesn't
layer ontop of kmem_cache though...
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been done, All that I have, has not.
___
freebsd-hackers@freebsd.org mailing list
http
)... and then PROC_UNLOCK the struct proc
after you've used psignal...
so:
struct proc *p;
p = pfind(pid);
if (p != NULL) {
psignal(p, SIGUSR1);
PROC_UNLOCK(p);
}
I haven't tried the code above, but that should do what you want...
--
John-Mark Gurney Voice: +1 415
(on RELENG_4)...
so you could should just include sys/param.h, and ditch sys/types.h
and unistd.h and it should work...
#include sys/lock.h
#include sys/mutex.h
#include sys/proc.h
--
John-Mark Gurney Voice: +1 415 225 5579
All that I will do, has been
1 - 100 of 220 matches
Mail list logo