<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/led, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFcalloutng:</title>
<updated>2013-02-19T19:25:50+00:00</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2013-02-19T19:25:50+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=69c2a7707dfbb0fec7d1eb9b7f2856e94a83b423'/>
<id>69c2a7707dfbb0fec7d1eb9b7f2856e94a83b423</id>
<content type='text'>
Make led(4) fire callouts at 10Hz only when there is at least one LED that
is requested to blink.  Do not fire if all LEDs are static (usual case).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make led(4) fire callouts at 10Hz only when there is at least one LED that
is requested to blink.  Do not fire if all LEDs are static (usual case).
</pre>
</div>
</content>
</entry>
<entry>
<title>MFgraid/head r218174:</title>
<updated>2011-03-24T08:56:12+00:00</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2011-03-24T08:56:12+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=92b7c16c7371466cb312aba0ce2607c394925829'/>
<id>92b7c16c7371466cb312aba0ce2607c394925829</id>
<content type='text'>
Add simple in-kernel API for controlling leds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add simple in-kernel API for controlling leds.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix an incorrect use of sbuf_overflowed() after a call to sbuf_finish().</title>
<updated>2010-09-09T18:35:08+00:00</updated>
<author>
<name>Matthew D Fleming</name>
<email>mdf@FreeBSD.org</email>
</author>
<published>2010-09-09T18:35:08+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=10e0075ddb96d18cc1dbb02ef068f00c452f2157'/>
<id>10e0075ddb96d18cc1dbb02ef068f00c452f2157</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>(S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.</title>
<updated>2009-12-28T22:56:30+00:00</updated>
<author>
<name>Antoine Brodin</name>
<email>antoine@FreeBSD.org</email>
</author>
<published>2009-12-28T22:56:30+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=13e403fdeadd26f9748ba83ea50ee271fbfc862a'/>
<id>13e403fdeadd26f9748ba83ea50ee271fbfc862a</id>
<content type='text'>
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

PR:		137213
Submitted by:	Eygene Ryabinkin (initial version)
MFC after:	1 month
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix some wrong usages.
Note: this does not affect generated binaries as this argument is not used.

PR:		137213
Submitted by:	Eygene Ryabinkin (initial version)
MFC after:	1 month
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove unit2minor() use from kernel code.</title>
<updated>2008-09-26T14:19:52+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-09-26T14:19:52+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b'/>
<id>d3ce8327194c0bcf742f2e03b5b0dc8f8cfe7f6b</id>
<content type='text'>
When I changed kern_conf.c three months ago I made device unit numbers
equal to (unneeded) device minor numbers. We used to require
bitshifting, because there were eight bits in the middle that were
reserved for a device major number. Not very long after I turned
dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
The unit2minor() and minor2unit() macro's were no-ops.

We'd better not remove these four macro's from the kernel, because there
is a lot of (external) code that may still depend on them. For now it's
harmless to remove all invocations of unit2minor() and minor2unit().

Reviewed by:	kib
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When I changed kern_conf.c three months ago I made device unit numbers
equal to (unneeded) device minor numbers. We used to require
bitshifting, because there were eight bits in the middle that were
reserved for a device major number. Not very long after I turned
dev2unit(), minor(), unit2minor() and minor2unit() into macro's.
The unit2minor() and minor2unit() macro's were no-ops.

We'd better not remove these four macro's from the kernel, because there
is a lot of (external) code that may still depend on them. For now it's
harmless to remove all invocations of unit2minor() and minor2unit().

Reviewed by:	kib
</pre>
</div>
</content>
</entry>
<entry>
<title>Add sbuf_new_auto as a shortcut for the very common case of creating a</title>
<updated>2008-08-09T11:14:05+00:00</updated>
<author>
<name>Dag-Erling Smørgrav</name>
<email>des@FreeBSD.org</email>
</author>
<published>2008-08-09T11:14:05+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=2616144e4345e4cdab56fd7c673fbb69074a9ce2'/>
<id>2616144e4345e4cdab56fd7c673fbb69074a9ce2</id>
<content type='text'>
completely dynamic sbuf.

Obtained from:	Varnish
MFC after:	2 weeks
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
completely dynamic sbuf.

Obtained from:	Varnish
MFC after:	2 weeks
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove the distinction between device minor and unit numbers.</title>
<updated>2008-05-29T12:50:46+00:00</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2008-05-29T12:50:46+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=06d425f92e7dd0dc8f8e705c6d76b78989a496ab'/>
<id>06d425f92e7dd0dc8f8e705c6d76b78989a496ab</id>
<content type='text'>
Even though we got rid of device major numbers some time ago, device
drivers still need to provide unique device minor numbers to make_dev().
These numbers are only used inside the kernel. They are not related to
device major and minor numbers which are visible in devfs. These are
actually based on the inode number of the device.

It would eventually be nice to remove minor numbers entirely, but we
don't want to be too agressive here.

Because the 8-15 bits of the device number field (si_drv0) are still
reserved for the major number, there is no 1:1 mapping of the device
minor and unit numbers. Because this is now unused, remove the
restrictions on these numbers.

The MAXMAJOR definition was actually used for two purposes. It was used
to convert both the userspace and kernelspace device numbers to their
major/minor pair, which is why it is now named UMINORMASK.

minor2unit() and unit2minor() have now become useless. Both minor() and
dev2unit() now serve the same purpose. We should eventually remove some
of them, at least turning them into macro's. If devfs would become
completely minor number unaware, we could consider using si_drv0 directly,
just like si_drv1 and si_drv2.

Approved by:	philip (mentor)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Even though we got rid of device major numbers some time ago, device
drivers still need to provide unique device minor numbers to make_dev().
These numbers are only used inside the kernel. They are not related to
device major and minor numbers which are visible in devfs. These are
actually based on the inode number of the device.

It would eventually be nice to remove minor numbers entirely, but we
don't want to be too agressive here.

Because the 8-15 bits of the device number field (si_drv0) are still
reserved for the major number, there is no 1:1 mapping of the device
minor and unit numbers. Because this is now unused, remove the
restrictions on these numbers.

The MAXMAJOR definition was actually used for two purposes. It was used
to convert both the userspace and kernelspace device numbers to their
major/minor pair, which is why it is now named UMINORMASK.

minor2unit() and unit2minor() have now become useless. Both minor() and
dev2unit() now serve the same purpose. We should eventually remove some
of them, at least turning them into macro's. If devfs would become
completely minor number unaware, we could consider using si_drv0 directly,
just like si_drv1 and si_drv2.

Approved by:	philip (mentor)
</pre>
</div>
</content>
</entry>
<entry>
<title>Make it possible to specify an initial state for the LED.</title>
<updated>2007-04-23T12:42:15+00:00</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2007-04-23T12:42:15+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=ea60845d09e6bcb73038858af28bd191219b610b'/>
<id>ea60845d09e6bcb73038858af28bd191219b610b</id>
<content type='text'>
Requested by:	Henrik Brix Andersen &lt;henrik@brixandersen.dk&gt;
PR:	112008
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Requested by:	Henrik Brix Andersen &lt;henrik@brixandersen.dk&gt;
PR:	112008
</pre>
</div>
</content>
</entry>
<entry>
<title>Add placeholder mutex argument to new_unrhdr().</title>
<updated>2005-03-07T11:05:47+00:00</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-03-07T11:05:47+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=3b3f38ed7d68ed7d6b61fa152b4f0e7e4c2c298a'/>
<id>3b3f38ed7d68ed7d6b61fa152b4f0e7e4c2c298a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make a bunch of malloc types static.</title>
<updated>2005-02-10T12:02:37+00:00</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2005-02-10T12:02:37+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=c711aea6cae4409bc957bf327fd5b23ada7fdf21'/>
<id>c711aea6cae4409bc957bf327fd5b23ada7fdf21</id>
<content type='text'>
Found by:	src/tools/tools/kernxref
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Found by:	src/tools/tools/kernxref
</pre>
</div>
</content>
</entry>
</feed>
