Picon

Using netgraph in kernel modules

Hi

I included the two files in my kernel module :

#include <netgraph/netgraph.h>#include <netgraph/ng_message.h>

And here is contents of Makefile:

  KMOD= echo   SRCS= char_dev.c

  .include <bsd.kmod.mk>

When I try to run make I face the following errors:

 <at> /netgraph/ng_message.h:59: error: expected specifier-qualifier-list before 'u_char'
 <at> /netgraph/ng_message.h:227: error: expected specifier-qualifier-list before 'uint32_t'
 <at> /netgraph/ng_message.h:269: error: expected specifier-qualifier-list before 'u_int32_t'
 <at> /netgraph/ng_message.h:283: error: expected specifier-qualifier-list before 'u_int32_t'
 <at> /netgraph/ng_message.h:294: error: expected specifier-qualifier-list before 'u_int32_t'
 <at> /netgraph/ng_message.h:306: error: expected specifier-qualifier-list before 'u_int64_t'
 <at> /netgraph/ng_message.h:332: error: expected specifier-qualifier-list before 'u_int'
 <at> /netgraph/ng_message.h:352: error: expected specifier-qualifier-list before 'uint32_t'
In file included from  <at> /sys/lock.h:36,
                 from  <at> /netgraph/netgraph.h:52,
                 from char_dev.c:2:
 <at> /sys/_lock.h:36: error: expected specifier-qualifier-list before 'u_int'
In file included from  <at> /netgraph/netgraph.h:52,
                 from char_dev.c:2:
 <at> /sys/lock.h:60: error: expected specifier-qualifier-list before 'u_int'
In file included from char_dev.c:2:
(Continue reading)

Rafael Rodrigues Nakano | 20 Jun 02:20 2016
Picon
Gravatar

Pkg conflicts

Thats awesome, thank you.

2016-06-19 21:05 GMT-03:00 Dewayne Geraghty <dewaynegeraghty <at> gmail.com>:

>

> svnlite update -r "{2016-03-20}" /usr/ports/ports-mgmt/pkg
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Rafael Rodrigues Nakano | 20 Jun 02:09 2016
Picon
Gravatar

Re: Pkg conflicts

Thats awesome, thank you.

2016-06-19 21:05 GMT-03:00 Dewayne Geraghty <dewaynegeraghty <at> gmail.com>:

> svnlite update -r "{2016-03-20}" /usr/ports/ports-mgmt/pkg
>
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Rafael Rodrigues Nakano | 20 Jun 01:29 2016
Picon
Gravatar

Re: Pkg conflicts

Thanks. Is there a earlier version available or should I get it from a
older installation media?

2016-06-19 20:24 GMT-03:00 Dewayne Geraghty <dewaynegeraghty <at> gmail.com>:

> Log a PR is the usual way.  Pkg is always under development, I've found
> reverting to a known working copy of pkg to be more productive.  Stick to
> 1.6.4 until you think a later version works.
>
> I don't mind testing beta grade software, but not SW under development! ;)
>
>
> On Monday, 20 June 2016, Rafael Rodrigues Nakano <mseqs <at> bsd.com.br> wrote:
>
>> Thanks for letting me know that.
>>
>> Is there any thread/conversation about this? So I could "follow" this
>> subject, to know when this issue is fixed?
>>
>> 2016-06-19 17:34 GMT-03:00 Baptiste Daroussin <bapt <at> freebsd.org>:
>>
>> > On Sun, Jun 19, 2016 at 05:33:31PM -0300, Rafael Rodrigues Nakano wrote:
>> > > I'm sure it isn't related only to jpeg-turbo. While installing gnome3
>> it
>> > > complains about 3 dependencies, but I don't know which.
>> >
>> > Yup there is a bug that we have spotted in the solver, we are working
>> on a
>> > fix
>> >
(Continue reading)

Rafael Rodrigues Nakano | 18 Jun 17:31 2016
Picon
Gravatar

Pkg conflicts

Hello.

I tried both on 10.3-RELEASE and on 11-CURRENT, pkg outputs "Checking
integrity... done (4 conflicting)
Cannot solve problem using SAT solver, trying another plan
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed" on any X-related
package (desktop environments and window managers, etc). For sure, the
package isn't installed and it's a fresh install, it shouldn't have
conflicts. I did not mixed ports and packages. How can I, at least, see
which of the packages are conflicting? Ps.: I also tried debug mode, no
success. Thanks in advance

(this occurs with gnome3-lite, kde, mate)
(I have installed only xorg, subversion, gdb and nano)
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Norbert Koch | 16 Jun 17:23 2016
Picon

gpart inside jails

Hello,

for creating freebsd boot flash media for embedded devices
I use mdconfig/gpart.

Recently I put my 32-bit build machines into a jail under a 64-bit machine.
This is my configuration:

Host: FreeBSD-10.3/amd64
Jail1: FreeBSD-9.1/i386
Jail2: FreeBSD-10.3/i386
Jail3: FreeBSD-10.3/amd64

If I jexec gpart status I get this:
  Jail1: segmentation fault
  Jail2: segmentation fault
  Jail3: correct result as seen under host system

So, this is obviously a 32/64 bit issue. Any idea?

Thank you,
Norbert Koch

_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Da Rock | 16 Jun 14:35 2016
Picon

enabling cpu "features" in custom kernel

I'm just trying to get my head around kernel building and clang.

If I want to enable certain features available on my cpu which are 
available by clang, how do I enable them? As I understand it using 
ccflags is a no no (ie /etc/make.conf), so how do I go about enabling 
them? I seem to be missing something in my research here...

One thing I did consider was that there might be some "include" or 
"option" somewhere that I missed, but I still can't find it. There must 
be something in the mk files or such, and I'm guessing that its due to 
the ability to build the freebsd with various workarounds for different 
systems - but how would I get around that so I can try testing something 
out?

Cheers

_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"

Abhinav Upadhyay | 15 Jun 22:59 2016
Picon
Gravatar

Possible bug in ul(1)

Hi,

NetBSD's ul(1) had a bug, where it would dump core for certain inputs
containing really long lines. For example, we had two man pages for
which it would crash:

man evrpc | ul
man xdm | ul

We had a statically allocated buffer (struct CHAR obuf[MAXBUF]) for
representing columns in the lines of the input file, and for really
long lines, we would try to read beyond the size of the buffer and
crash. We've fixed it by using reallocarr(3) and friends [1].

FreeBSD also uses a statically allocated buffer, but it ensures that
it never reads beyond the fixed size of the buffer and therefore
doesn't crash for such bad inputs.

line 170: while ((c = getwc(f)) != WEOF && col < MAXBUF) switch(c) {

However, it stops reading the file just at the point where the number
of columns in the line exceeds the buffer size and exits with status
0. I think, if it is not going to read the complete file, it should
exit with a non-0 status, so that the user gets to know that the
output from ul(1) is not complete? Or, probably it would be better to
fix ul(1) so that it is able to read files with arbitrarily long
lines. :)

PS: I'm not subscribed to the list, so please keep me CC'ed.

(Continue reading)

Fabian Keil | 15 Jun 14:05 2016
Picon

vnlru_proc() draining unrelated uma zones

While looking into two uma-related issues[0] I noticed that
vnlru_proc() is calling uma_reclaim() even though the intention
seems to be to merely drain the vnode-related zones.

According to uma.h, uma_reclaim() "should only be called by
the page out daemon", presumably because of the overhead
and side-effects.

I've been using this patch for a couple of weeks and didn't
notice any regressions:

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 2767826..2c65ce1 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
 <at>  <at>  -1107,8 +1107,10  <at>  <at>  vnlru_proc(void)
                        vfs_unbusy(mp);
                }
                mtx_unlock(&mountlist_mtx);
-               if (onumvnodes > desiredvnodes && numvnodes <= desiredvnodes)
-                       uma_reclaim();
+               if (onumvnodes > desiredvnodes && numvnodes <= desiredvnodes) {
+                       zone_drain(vnode_zone);
+                       zone_drain(vnodepoll_zone);
+               }
                if (done == 0) {
                        if (force == 0 || force == 1) {
                                force = 2;

It also didn't seem to noticeable affect the issues I was investigating
(Continue reading)

outro pessoa | 14 Jun 18:53 2016
Picon

Hello

Seeing that you have quoted me from another email that I sent, my decision
is to inquire you on different topics.
Is the cognitive process the same for all members of the human species?
By which method(s) does the human animal learn?
By observation, each culture within an area has its own standards of
normality. The world view of each culture is dependent upon the experience
and understanding of the members of that culture. Education will coincide
with the perception of each member of any given society. Now, that which is
considered sane by the standards of one culture may be considered insane by
the standards of another.
In the scientific method, you must form a hypothesis and prove its validity.
I will add this to Schrodinger's Paradox.
Being that you are able to observe the quantum event from different
perspectives, you will need to observe the same event from the viewpoint of
the subject if such is possible. Your first hypothesis is that the subject
seems incapable of logic and reasoning to such a degree that the subject's
perception of the events occurring is false and flimsy at best.
I have not experienced that which you have experienced and therefore I have
no right to make any assumption about your nature.
My reactions are erroneous ; yet, the reasons for my reactions are solid.
Your judgement of me is based upon your own experiences and knowledge.
The words "you" and "your" are both plural and general simultaneously.

I have approached you openly and honestly, admitting to my faults.
Each day, I learn.
Because you are not me, I give you the benefit of the doubt - and, to
admit, this usually occurs after my reaction - when the situation becomes
more personal in nature.

If you are not able to see the similarities between myself and another -
(Continue reading)

outro pessoa | 14 Jun 18:01 2016
Picon

OpenGL on POWER/PowerPC

Why has this not been solved?
_______________________________________________
freebsd-hackers <at> freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe <at> freebsd.org"


Gmane