summaryrefslogtreecommitdiff
path: root/sys/geom/geom_stats.c
Commit message (Collapse)AuthorAgeFilesLines
* Retire the GEOM private statistics code and use devstat instead.Poul-Henning Kamp2003-03-181-137/+0
| | | | Notes: svn path=/head/; revision=112370
* Including <sys/stdint.h> is (almost?) universally only to be able to usePoul-Henning Kamp2003-03-181-1/+0
| | | | | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble. Notes: svn path=/head/; revision=112367
* Gigacommit to improve device-driver source compatibility betweenPoul-Henning Kamp2003-03-031-13/+5
| | | | | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl) Notes: svn path=/head/; revision=111815
* Cleanup of the d_mmap_t interface.Maxime Henrion2003-02-251-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386 Notes: svn path=/head/; revision=111462
* Add M_WAITOKPoul-Henning Kamp2003-02-191-2/+2
| | | | Notes: svn path=/head/; revision=111146
* Remove a debugging printf.Poul-Henning Kamp2003-02-111-1/+0
| | | | Notes: svn path=/head/; revision=110684
* Put the name of the /dev entry in the .h file, userland will need it.Poul-Henning Kamp2003-02-081-1/+1
| | | | Notes: svn path=/head/; revision=110543
* Move the g_stat struct to its own .h file, we will export it to other code.Poul-Henning Kamp2003-02-081-0/+145
Insted of embedding a struct g_stat in consumers and providers, merely include a pointer. Remove a couple of <sys/time.h> includes now unneeded. Add a special allocator for struct g_stat. This allocator will allocate entire pages and hand out g_stat functions from there. The "id" field indicates free/used status. Add "/dev/geom.stats" device driver whic exports the pages from the allocator to userland with mmap(2) in read-only mode. This mmap(2) interface should be considered a non-public interface and the functions in libgeom (not yet committed) should be used to access the statistics data. Notes: svn path=/head/; revision=110541