freebsd-nq/sys/fs
Peter Wemm f41325db5f With this commit, I hereby pronounce gensetdefs past its use-by date.
Replace the a.out emulation of 'struct linker_set' with something
a little more flexible.  <sys/linker_set.h> now provides macros for
accessing elements and completely hides the implementation.

The linker_set.h macros have been on the back burner in various
forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()),
John Polstra (ELF clue) and myself (cleaned up API and the conversion
of the rest of the kernel to use it).

The macros declare a strongly typed set.  They return elements with the
type that you declare the set with, rather than a generic void *.

For ELF, we use the magic ld symbols (__start_<setname> and
__stop_<setname>).  Thanks to Richard Henderson <rth@redhat.com> for the
trick about how to force ld to provide them for kld's.

For a.out, we use the old linker_set struct.

NOTE: the item lists are no longer null terminated.  This is why
the code impact is high in certain areas.

The runtime linker has a new method to find the linker set
boundaries depending on which backend format is in use.

linker sets are still module/kld unfriendly and should never be used
for anything that may be modular one day.

Reviewed by:	eivind
2001-06-13 10:58:39 +00:00
..
cd9660 - FDESC, FIFO, NULL, PORTAL, PROC, UMAP and UNION file 2001-05-23 09:42:29 +00:00
coda Now works again and as a module and with devfs. 2001-06-05 19:45:16 +00:00
deadfs Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
devfs Support /dev/tun cloning. Ansify if_tun.c while I'm there. 2001-06-01 15:51:10 +00:00
fdescfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
fifofs The kq write filter was hooked up to the wrong socket, and thus was 2001-06-06 17:38:36 +00:00
hpfs Change the second argument of vflush() to an integer that specifies 2001-05-16 18:04:37 +00:00
msdosfs - VFS_SET(msdos) -> VFS_SET(msdosfs) 2001-06-01 10:57:26 +00:00
ntfs - sys/n[tw]fs moved to sys/fs/n[tw]fs 2001-05-26 11:57:45 +00:00
nullfs mount_null(8) -> mount_nullfs(8). 2001-05-24 13:17:47 +00:00
nwfs With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
portalfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
procfs Lock VM Giant prior to locking a vm map. 2001-06-06 04:13:11 +00:00
pseudofs For some reason, though the module builds just fine without <sys/lock.h>, 2001-06-11 15:04:48 +00:00
smbfs With this commit, I hereby pronounce gensetdefs past its use-by date. 2001-06-13 10:58:39 +00:00
specfs Don't acquire/release Giant around some of the places that need it in 2001-05-23 22:20:29 +00:00
umapfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00
unionfs Actually rename FDESC, PORTAL, UMAP and UNION file systems. 2001-05-24 15:20:11 +00:00