<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/netgraph/ng_socket.c, branch releng/6.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F6.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F6.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-09-20T13:42:20Z</updated>
<entry>
<title>MFC 1.69:</title>
<updated>2005-09-20T13:42:20Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-09-20T13:42:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=456f33935cb96ad3d0eeb0655416deb482903cbf'/>
<id>urn:sha1:456f33935cb96ad3d0eeb0655416deb482903cbf</id>
<content type='text'>
  When message can't fit into socket receive buffer return ENOBUFS
  to userland program instead of letting it wait until end of days.

  PR:	kern/85907

Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>MFC 1.68 by obrien:</title>
<updated>2005-09-13T12:43:15Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-09-13T12:43:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8deb7fdc666ef1ad0eb2d396e539897f5ed22745'/>
<id>urn:sha1:8deb7fdc666ef1ad0eb2d396e539897f5ed22745</id>
<content type='text'>
  Fix missing '=' in structure initialization.

Approved by:	re (kensmith)
</content>
</entry>
<entry>
<title>In the splnet times, netgraph was functional and synchronous. Nowadays,</title>
<updated>2005-07-05T17:35:20Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-07-05T17:35:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8afe16d57ba4342c1af786f76697aeab17d598b6'/>
<id>urn:sha1:8afe16d57ba4342c1af786f76697aeab17d598b6</id>
<content type='text'>
an item may be queued and processed later. While this is OK for mbufs,
this is a problem for control messages.

In the framework:
- Add optional callback function pointer to an item. When item gets
  applied the callback is executed from ng_apply_item().
- Add new flag NG_PROGRESS. If this flag is supplied, then return
  EINPROGRESS instead of 0 in case if item failed to deliver
  synchronously and was queued.
- Honor NG_PROGRESS in ng_snd_item().

In ng_socket:
- When userland sends control message add callback to the item.
- If ng_snd_item() returns EINPROGRESS, then sleep.

This change fixes possible races in ngctl(8) scripts.

Reviewed by:	julian
Approved by:	re (scottl)
</content>
</entry>
<entry>
<title>Fix use of uninitialized variable len in ngd_send.</title>
<updated>2005-05-28T13:15:44Z</updated>
<author>
<name>Bjoern A. Zeeb</name>
<email>bz@FreeBSD.org</email>
</author>
<published>2005-05-28T13:15:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7cceedd6b591b46851affd7fe741abe2e24b1d87'/>
<id>urn:sha1:7cceedd6b591b46851affd7fe741abe2e24b1d87</id>
<content type='text'>
Note: len gets intialized to 0 for sap == NULL case only to
make compiler on amd64 happy. This has nothing todo with the
former uninitialized use of len in sap != NULL case.

Reviewed by:	glebius
Approved by:	pjd (mentor)
</content>
</entry>
<entry>
<title>Remove local error variable, which leads to hiding error from return</title>
<updated>2005-05-23T13:49:49Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-23T13:49:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2dc628b54a80b57f61416d1e3835f21745066577'/>
<id>urn:sha1:2dc628b54a80b57f61416d1e3835f21745066577</id>
<content type='text'>
value.

PR:		kern/81371
Submitted by:	Wojciech A. Koszek
MFC after:	1 week
</content>
</entry>
<entry>
<title>- Unwind NG_SEND_MSG_PATH() macro and merge it with already unwinded</title>
<updated>2005-05-17T12:18:13Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-17T12:18:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=24ac2f1c5e316ce14c06a663944b2867bae423b7'/>
<id>urn:sha1:24ac2f1c5e316ce14c06a663944b2867bae423b7</id>
<content type='text'>
  version under TRACE_MESSAGES.
- Pass NG_WAITOK flag to ng_package_data() in unwinded macro.
</content>
</entry>
<entry>
<title>- Fix build with TRACE_MESSAGES on.</title>
<updated>2005-05-16T18:50:26Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-16T18:50:26Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ae76957d25b906d9ba4efc8639555aecd7360a53'/>
<id>urn:sha1:ae76957d25b906d9ba4efc8639555aecd7360a53</id>
<content type='text'>
- Reformat code under TRACE_MESSAGES to make it more readable.
- Move linker hackery out of #ifdef.
- Break long lines in linker hackery block.
</content>
</entry>
<entry>
<title>Close race between node being shutdown and socket being detached. To</title>
<updated>2005-05-16T17:25:49Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-16T17:25:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=94b73ad3a92217e465a4549a264cd3f873b66662'/>
<id>urn:sha1:94b73ad3a92217e465a4549a264cd3f873b66662</id>
<content type='text'>
do this, obtain netgraph locking in detach method via ng_send_fn1().

Reviewed by:	julian
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Catch up with new ng_package_data(). Use NG_WAITOK on userland</title>
<updated>2005-05-16T17:09:35Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-05-16T17:09:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3033e8026a0f74d055c239a84d486913549b8b46'/>
<id>urn:sha1:3033e8026a0f74d055c239a84d486913549b8b46</id>
<content type='text'>
path.
</content>
</entry>
<entry>
<title>Create a per-module mutex on MOD_LOAD, and destroy it on MOD_UNLOAD.</title>
<updated>2005-02-05T08:28:36Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2005-02-05T08:28:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=30aabc9afd5b14ce95bbf898be4cc0704d67a1b7'/>
<id>urn:sha1:30aabc9afd5b14ce95bbf898be4cc0704d67a1b7</id>
<content type='text'>
(This fixes witness_destroy() panic after module unload.)

OK'ed by:	rwatson, julian
</content>
</entry>
</feed>
