On Wed, Jun 23, 2010 at 9:03 AM, rank1see...@gmail.com wrote:
I've escaped to loader prompt:
Current device is disk0s3a, from which this loader is running.
My USB stick is device1 and device1s2a is UFS /, on which I would like to
reach some file or simply list directory.
IIRC, there is no
On Sun, Jul 11, 2010 at 7:58 AM, Gabor Kovesdan ga...@freebsd.org wrote:
Em 2010.07.11. 16:54, Dimitry Andric escreveu:
On 2010-07-11 16:46, Gabor Kovesdan wrote:
I have two int64_t variables in kernel code, first is stored internally
and the second one is passed from a syscall argument.
We've seen a few instances at work where witness_warn() in ast()
indicates the sched lock is still held, but the place it claims it was
held by is in fact sometimes not possible to keep the lock, like:
thread_lock(td);
td-td_flags = ~TDF_SELECT;
thread_unlock(td);
What I
On Thu, Jul 29, 2010 at 4:39 PM, m...@freebsd.org wrote:
We've seen a few instances at work where witness_warn() in ast()
indicates the sched lock is still held, but the place it claims it was
held by is in fact sometimes not possible to keep the lock, like:
thread_lock(td);
2010/7/30 Kostik Belousov kostik...@gmail.com:
On Thu, Jul 29, 2010 at 04:57:25PM -0700, m...@freebsd.org wrote:
On Thu, Jul 29, 2010 at 4:39 PM, m...@freebsd.org wrote:
We've seen a few instances at work where witness_warn() in ast()
indicates the sched lock is still held, but the place it
On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin j...@freebsd.org wrote:
On Friday, July 30, 2010 10:08:22 am John Baldwin wrote:
On Thursday, July 29, 2010 7:39:02 pm m...@freebsd.org wrote:
We've seen a few instances at work where witness_warn() in ast()
indicates the sched lock is still
On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin j...@freebsd.org wrote:
On Tuesday, August 03, 2010 9:46:16 pm m...@freebsd.org wrote:
On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin j...@freebsd.org wrote:
On Friday, July 30, 2010 10:08:22 am John Baldwin wrote:
On Thursday, July 29, 2010
On Wed, Aug 4, 2010 at 11:55 AM, John Baldwin j...@freebsd.org wrote:
On Wednesday, August 04, 2010 12:20:31 pm m...@freebsd.org wrote:
On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin j...@freebsd.org wrote:
On Tuesday, August 03, 2010 9:46:16 pm m...@freebsd.org wrote:
On Fri, Jul 30, 2010 at
On Wed, Aug 4, 2010 at 9:20 AM, m...@freebsd.org wrote:
On Wed, Aug 4, 2010 at 2:26 PM, John Baldwin j...@freebsd.org wrote:
Actually, I would beg to differ in that case. If PCPU_GET(spinlocks)
returns non-NULL, then it means that you hold a spin lock,
ll_count is 0 for the correct
(gdb) p panic_cpu
$9 = 2
(gdb) p dumptid
$12 = 100751
(gdb) p cpuhead.slh_first-pc_allcpu.sle_next-pc_curthread-td_tid
$14 = 100751
(gdb) p *cpuhead.slh_first-pc_allcpu.sle_next
$6 = {
pc_curthread = 0xff00716d6960,
pc_cpuid = 2,
pc_spinlocks = 0x80803198,
(gdb) p
On Sun, Aug 8, 2010 at 2:43 PM, Attilio Rao atti...@freebsd.org wrote:
2010/8/4 m...@freebsd.org:
On Fri, Jul 30, 2010 at 2:31 PM, John Baldwin j...@freebsd.org wrote:
On Friday, July 30, 2010 10:08:22 am John Baldwin wrote:
On Thursday, July 29, 2010 7:39:02 pm m...@freebsd.org wrote:
On Mon, Sep 6, 2010 at 1:38 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote:
PowerPC hypervisors typically provided a restricted range on memory when
the MMU is disabled, as it is when initially handling exceptions. In
order to restore virtual memory, the powerpc64 code needs to read a data
On Mon, Sep 6, 2010 at 4:28 AM, Nathan Whitehorn nwhiteh...@freebsd.org wrote:
On 09/05/10 22:51, m...@freebsd.org wrote:
On Mon, Sep 6, 2010 at 1:38 AM, Nathan Whitehorn nwhiteh...@freebsd.org
wrote:
PowerPC hypervisors typically provided a restricted range on memory when
the MMU is
On Mon, Nov 15, 2010 at 9:53 AM, Garrett Cooper yaneg...@gmail.com wrote:
According to SYSCTL_INT(9):
The SYSCTL kernel interfaces allow code to statically declare sysctl(8)
MIB entries, which will be initialized when the kernel module containing
the declaration is initialized.
(Taking to -hackers by request)
My old (Ubuntu) laptop died and I have replaced it with a Macbook Air.
I know from visual inspection at BSDCan that 50% of the attending
developers own a Mac laptop of some kind.
However, I've been a bit stumped on how to share the source code from
my Mac with
/*.log doesn't
*seem* to have anything useful, just a few in appfirewall.log about
nfsd listening on various ports.
Even with the firewall off I get the same Client credential too weak
error. I get the same error when I change /etc/exports on the Mac and
/etc/fstab on the FreeBSD VM to /Users/mdf
error when I change /etc/exports on the Mac and
/etc/fstab on the FreeBSD VM to /Users/mdf.
So... I'm pretty stumped.
Thanks,
matthew
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
There are very few uses in FreeBSD mainline code of
sysctl_remove_oid(), and I was looking at potentially removing them.
However, the use in coretemp/amdtemp has me slightly stumped.
Each device provides a device_get_sysctl_ctx sysctl_ctx that is
automatically cleaned up when the device goes
I thought I knew something about how the compiler looks for include
files, but now I think maybe I don't know much. :-)
So here's what I'm pondering. When I build a library, like e.g. libc,
where do the include files get pulled from? They can't (shouldn't) be
the ones in /usr/include, but I
(F_RDADVISE)?
It is like madvise(2) but for file descriptors.
No, it does not (and I think the function is spelled posix_fadvise()).
mdf reserved the syscall slot for posix_fadvise in his recent work
on posix_fallocate(). Might be, he could comment more.
Whoops, I replied bot forgot to reply-all
2011/5/12 Lev Serebryakov l...@serebryakov.spb.ru:
Hello, Mdf.
You wrote 12 мая 2011 г., 15:40:25:
Does FreeBSD have some custom call, which can be used where Linux
programs uses posix_fadvice() and DARWIN ones fcntl(F_RDADVISE)?
It is like madvise(2) but for file descriptors
I am looking into potentially MFC'ing r212367 and related, that adds
drains to sbufs. The reason for MFC is that several pieces of new
code in CURRENT are using the drain functionality and it would make
MFCing those changes much easier.
The problem is that r212367 added a pointer to a drain
On Sun, Jun 5, 2011 at 11:13 AM, Ben Laurie b...@links.org wrote:
So, for example int64_t has no printf modifier I am aware of. Likewise
its many friends.
The worse option is to use the C99 defines, like PRI64 and PRI64U.
The better option is to use %jd / %ju and cast the value to
[u]intmax_t.
There is a check in the function implementing readdir(3) for a zero
inode number:
struct dirent *
_readdir_unlocked(dirp, skip)
DIR *dirp;
int skip;
{
/* ... */
if (dp-d_ino == 0 skip)
continue;
/* ... */
}
skip is 1 except
On Fri, Jun 24, 2011 at 6:14 AM, John Baldwin j...@freebsd.org wrote:
On Friday, June 24, 2011 3:23:11 am Sebastian Huber wrote:
Hello,
exists there some unit tests for FreeBSD kernel APIs, e.g. mutex(9),
condvar(9), etc.?
Have a nice day!
Hmm, I have a kernel module that does some tests,
On Tue, Jul 5, 2011 at 6:36 AM, Robert Millan r...@debian.org wrote:
2011/7/5 Dimitry Andric d...@freebsd.org:
As far as I can see, this code only gives warnings when compiled with
gcc 4.5 or higher, and when using the -Wundef flag. Isn't it easier to
just remove the -Wundef flag here?
On Mon, Jul 18, 2011 at 5:32 AM, Uffe Jakobsen u...@uffe.org wrote:
Please consider this patch - it unifies sysctls: vm.kvm_size and
vm.kvm_free.
Currently these sysctls are only found under i386 and amd64:
sys/i386/i386/pmap.c
sys/i386/xen/pmap.c
sys/amd64/amd64/pmap.c
It seems logical
On Mon, Jul 18, 2011 at 7:47 AM, Uffe Jakobsen u...@uffe.org wrote:
On 2011-07-18 15:54, m...@freebsd.org wrote:
On Mon, Jul 18, 2011 at 5:32 AM, Uffe Jakobsenu...@uffe.org wrote:
Please consider this patch - it unifies sysctls: vm.kvm_size and
vm.kvm_free.
Currently these sysctls are only
On Mon, Aug 29, 2011 at 7:46 AM, Ivan Voras ivo...@freebsd.org wrote:
On 26/08/2011 19:44, Garrett Cooper wrote:
On Fri, Aug 26, 2011 at 10:36 AM, Ivan Voras ivo...@freebsd.org wrote:
...
I think that I'll need a 9-CURRENT snapshot on it to run all 128 CPUs,
right?
A 9.0-BETA1 snapshot,
On Wed, Sep 7, 2011 at 11:08 AM, Charlie Martin crmar...@sgi.com wrote:
I'm still pursuing a FreeBSD bug in 7.2-PRERELEASE FreeBSD -- and yes, we
know this is wildly out of date, but it's not feasible to upgrade right now
-- and while trying to backport a fix suggested here
On Wed, Sep 7, 2011 at 12:24 PM, Charlie Martin crmar...@sgi.com wrote:
On 2011-09-07 12:53, m...@freebsd.org wrote:
For my immediate purposes, I'd be happy with any way in which I could
brutally kill the kernel and force it to the debugger, say by
replacing the
panic call with a
2011/10/2 Lev Serebryakov l...@freebsd.org:
Hello, Freebsd-hackers.
Here are several memory-allocation mechanisms in the kernel. The two
I'm aware of is MALLOC_DEFINE()/malloc()/free() and uma_* (zone(9)).
As far as I understand, malloc() is general-purpose, but it has
fixed transaction
2011/10/2 Lev Serebryakov l...@freebsd.org:
Hello, Freebsd-hackers.
What should I use to measure short intervals of time between events
in kernel? I don't need any time in means of, for example, time(3)
API, but some monotonically and uniformly increasing counter with
known frequency. As
2011/10/3 Lev Serebryakov l...@freebsd.org:
Is here atomic increment and get (or add and get) operation in
kernel? I cannot find one. Here is atomic_add_32(), but it doesn't
return result. And here is no atomic_add_64() on 32 bit system :(
See atomic_fetchadd_int.
Not all hardware has
On Mon, Oct 3, 2011 at 7:55 AM, satish kondapalli nitw.sat...@gmail.com wrote:
I am new to FreeBSD, I just want know whether FreeBSD supports NUMA.
If FreeBSD supports NUMA what are the kernel API to allocate memory?
is there any example driver or any driver which is using the NUMA API?
On Mon, Oct 3, 2011 at 10:24 AM, Arnaud Lacombe lacom...@gmail.com wrote:
Hi,
On Mon, Oct 3, 2011 at 12:31 PM, m...@freebsd.org wrote:
On Mon, Oct 3, 2011 at 7:55 AM, satish kondapalli nitw.sat...@gmail.com
wrote:
I am new to FreeBSD, I just want know whether FreeBSD supports NUMA.
If
2011/10/7 Mustafa Reşit Şahin resitsa...@gmail.com:
I am trying to run Valgrind on FreeBSD. I am getting the error about
ksem_open which i stated below. I have searched for a solution to be able
to solve this problem and found the calgrind patch. I could not found the
instructions to apply
2011/10/30 Lev Serebryakov l...@freebsd.org:
Hello, Hackers.
(SORRY FOR SENDING INCOMPLETE MESSAGE)
How to express inter-directory dependencies in bsd.*.mk infrastructure?
I have project, which has two subdirectories: lib and bin.
Top-level Makefile is simple one, looks like this:
2011/10/30 Lev Serebryakov l...@freebsd.org:
Hello, Hackers.
I need to pass volatile void * to API function, which takes
void*. gcc (on FreeBSD 8.2) emits warning, and as in FreeBSD-styed
code warnings are treated as errors, program could not be built.
Manual casting gives warning, too...
On Wed, Nov 2, 2011 at 4:56 PM, Alexander Best arun...@freebsd.org wrote:
i sent the following message to freebsd-quaestions@ and got no answer. mybe it
is better suited for freebsd-hackers@.
hi there,
i found hundreds of the following cases in the FreeBSD src:
[...]
struct periph_driver
On Tue, Nov 15, 2011 at 12:18 PM, Maxim Ignatenko gelraen...@gmail.com wrote:
frHi,
I'm currently inventing the wheel^W^W^Wwriting a firewall from scratch and
looking for most convenient way to establish communication between userspace
processes and kernel part. Communication pattern best
On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote:
Hi,
I was lucky to write a bit of code which gcc 4.2 fails to compile
correctly with -O2. Too keep long story short the code fails for gcc
from base system and last gcc 4.2 snapshot from ports. It works with gcc
4.3,
On Sat, Nov 19, 2011 at 8:19 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote:
On (19/11/2011 07:26), m...@freebsd.org wrote:
On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote:
Hi,
I was lucky to write a bit of code which gcc 4.2 fails to compile
correctly with -O2.
On Sun, Nov 20, 2011 at 10:24 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote:
On (19/11/2011 09:11), m...@freebsd.org wrote:
On Sat, Nov 19, 2011 at 8:19 AM, Gleb Kurtsou gleb.kurt...@gmail.com wrote:
On (19/11/2011 07:26), m...@freebsd.org wrote:
On Sat, Nov 19, 2011 at 2:01 AM, Gleb Kurtsou
On Sun, Dec 11, 2011 at 1:12 PM, Andriy Gapon a...@freebsd.org wrote:
Does the following change do what I think that it does?
Thank you!
Author: Andriy Gapon a...@icyb.net.ua
Date: Thu Sep 1 16:50:13 2011 +0300
ukbd: drop local duplicate of kern_yield and use that instead
diff --git
On Mon, Dec 12, 2011 at 12:03 AM, Andriy Gapon a...@freebsd.org wrote:
on 11/12/2011 23:48 m...@freebsd.org said the following:
On Sun, Dec 11, 2011 at 1:12 PM, Andriy Gapon a...@freebsd.org wrote:
Does the following change do what I think that it does?
Thank you!
Author: Andriy Gapon
On Mon, Dec 12, 2011 at 11:05 AM, John Baldwin j...@freebsd.org wrote:
On Monday, December 12, 2011 10:58:22 am Hans Petter Selasky wrote:
On Monday 12 December 2011 16:55:38 m...@freebsd.org wrote:
On Mon, Dec 12, 2011 at 12:03 AM, Andriy Gapon a...@freebsd.org wrote:
on 11/12/2011 23:48
2011/12/18 Fernando Apesteguía fernando.apesteg...@gmail.com:
El 18/12/2011 22:12, Julian Elischer jul...@freebsd.org escribió:
On 12/18/11 12:18 PM, Fernando Apesteguía wrote:
Hi all,
I'm writing a small module just for fun. I would like to have two
variables:
- pid of type unsigned int
On Tue, Dec 27, 2011 at 8:05 AM, Attilio Rao atti...@freebsd.org wrote:
2011/12/27 Giovanni Trematerra giovanni.tremate...@gmail.com:
On Mon, Dec 26, 2011 at 9:24 PM, Venkatesh Srinivas
vsrini...@dragonflybsd.org wrote:
Hi!
I've been playing with two things in DragonFly that might be of
On Tue, Dec 27, 2011 at 9:05 AM, Attilio Rao atti...@freebsd.org wrote:
2011/12/27 m...@freebsd.org:
On Tue, Dec 27, 2011 at 8:05 AM, Attilio Rao atti...@freebsd.org wrote:
2011/12/27 Giovanni Trematerra giovanni.tremate...@gmail.com:
On Mon, Dec 26, 2011 at 9:24 PM, Venkatesh Srinivas
On Wed, Feb 8, 2012 at 10:33 PM, John Kozubik j...@kozubik.com wrote:
If it were up to me, I think I would stake out a very loud and clear mission
statement for FreeBSD that explicitly sacrifices new features for longer
lifecycles and deeper investment in particular releases. I've thought
On Tue, Feb 14, 2012 at 8:57 AM, Julian Elischer jul...@freebsd.org wrote:
On 2/14/12 6:23 AM, Maninya M wrote:
For multicore desktop computers, suppose one of the cores fails, the
FreeBSD OS crashes. My question is about how I can make the OS tolerate
this hardware fault.
The strategy is to
On Tue, Jun 26, 2012 at 1:59 AM, Robert Watson rwat...@freebsd.org wrote:
On Tue, 26 Jun 2012, Chris Rees wrote:
as well as we don't depend of /proc for normal operation we shouldn't for
say /proc/sysctl
improvements are welcome, better documentation is welcome, changes to
what is OK -
On Mon, Aug 13, 2012 at 1:24 AM, Hooman Fazaeli hoomanfaza...@gmail.com wrote:
Hi hackers
In the process of back porting drivers to older freebsd versions,
We sometimes need to add suitable '#if __FreeBSD_version = x ... else
... '
directives to the source to use an alternate function or
On Mon, Sep 3, 2012 at 7:29 AM, Eitan Adler li...@eitanadler.com wrote:
On 3 September 2012 10:19, Ryan Stone ryst...@gmail.com wrote:
On Sun, Sep 2, 2012 at 5:45 PM, Eitan Adler li...@eitanadler.com wrote:
Why isn't git.freebsd.org a straight git svn clone ? AFAIK that isn't
broken.
Well,
On Fri, Sep 14, 2012 at 4:45 AM, Erik Cederstrand e...@cederstrand.dk wrote:
Den 14/09/2012 kl. 13.03 skrev Ivan Voras ivo...@freebsd.org:
On 14/09/2012 09:49, Erik Cederstrand wrote:
Hello hackers,
I'm looking through the Clang Analyzer scans on
http://scan.freebsd.your.org/freebsd-head
On Wed, Oct 17, 2012 at 4:20 AM, Andriy Gapon a...@freebsd.org wrote:
_mtx_lock_spin has the following check in its retry loop:
if (i 6000 || kdb_active || panicstr != NULL)
DELAY(1);
else
_mtx_lock_spin_failed(m);
[snip analysis]
So I'd like to propose to remove
On Fri, Jan 18, 2013 at 7:29 AM, Andre Oppermann an...@freebsd.org wrote:
The (inital?) size of the kmem_map is determined by some voodoo magic,
a sprinkle of nmbclusters * PAGE_SIZE incrementor and lots of tunables.
However it seems to work out to an effective kmem_map_size of about 58MB
on
On Sun, Jan 20, 2013 at 3:01 PM, Yuri y...@rawbw.com wrote:
I am implementing an ioctl that reads/writes variable size structure.
Allocated size is supplied by the caller in the structure itself.
struct my_struct {
int len; // allocated size
other_struct s[1];
};
ioctl request id is
On Sun, Jan 20, 2013 at 6:50 PM, Yuri y...@rawbw.com wrote:
On 01/20/2013 16:59, m...@freebsd.org wrote:
To do what you want it sounds like you want your handler to take something
like:
struct var_ioctl {
int len;
void *data;
};
Then then handler itself would have to use
On Tue, Feb 5, 2013 at 7:14 AM, Konstantin Belousov kostik...@gmail.com wrote:
On Mon, Feb 04, 2013 at 03:05:15PM -0800, Neel Natu wrote:
Hi,
I have a patch to dynamically calculate NKPT for amd64 kernels. This
should fix the various issues that people pointed out in the email
thread.
On Tue, Feb 19, 2013 at 5:11 AM, Borja Marcos bor...@sarenet.es wrote:
Hello,
I'm really sorry if this is a stupid question, but as far as I know,
u_int64_t defined in /usr/include/sys/types.h should *always* be
a 64 bit unsigned integer, right?
Seems there's a bug (or I need more and
and extattr_list return ssize_t, so this is inconsistent.
The patch at
http://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix-rmextattr-8-.patchfixes
this. It compiles but it's untested.
I don't think any compat shims are needed, since an old application will
still sign extend
of bytes written, like write(2). This is
because extattr_set_* is declared as returning an int, not an ssize_t.
Both extattr_get and extattr_list return ssize_t, so this is
inconsistent.
The patch at
http://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix
/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix-
rmextattr-8-.patchfixeshttp://people.freebsd.org/~mdf/0001-Fix-return-type-of-extattr_set_-and-fix-rmextattr-8-.patchfixes
this. It compiles but it's untested.
I don't think any compat shims are needed, since an old application will
still
On Sat, Jun 8, 2013 at 3:52 PM, Dirk Engling erdge...@erdgeist.org wrote:
The arbitrary value
#define MNAMELEN88 /* size of on/from name bufs */
struct statfs {
[...]
charf_mntfromname[MNAMELEN];/* mounted filesystem */
char
On Fri, Jun 28, 2013 at 8:56 AM, Adrian Chadd adr...@freebsd.org wrote:
On 28 June 2013 08:37, Alexander Motin m...@freebsd.org wrote:
Otherwise it may just creep up again after someone does another change
in an unrelated part of the kernel.
Big win or small, TAILQ is still heavier then
On Mon, Jul 1, 2013 at 5:42 PM, David Sanford
david.lee...@programmer.netwrote:
Hi,
Thanks for your responses to my first question. They were very helpful.
In looking at the code, I ran across the functions setprogname and
getprogname. According to the man page:
In FreeBSD, the name of the
68 matches
Mail list logo