diff options
author | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-09-18 21:40:15 +0000 |
---|---|---|
committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2005-09-18 21:40:15 +0000 |
commit | 73130b2224f00c6e7e7d514abbe8808aa4d5f549 (patch) | |
tree | 0911dd1b024a567c2cd8b992d6febc27f797fd04 /sys/sys/uuid.h | |
parent | 8434c29b28fd4777c97725ca22a0305feb8b24f6 (diff) | |
download | src-73130b2224f00c6e7e7d514abbe8808aa4d5f549.tar.gz src-73130b2224f00c6e7e7d514abbe8808aa4d5f549.zip |
Move the UUID generator into its own function, called kern_uuidgen(),
so that UUIDs can be generated from within the kernel. The uuidgen(2)
syscall now allocates kernel memory, calls the generator, and does a
copyout() for the whole UUID store. This change is in support of GPT.
Notes
Notes:
svn path=/head/; revision=150303
Diffstat (limited to 'sys/sys/uuid.h')
-rw-r--r-- | sys/sys/uuid.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/uuid.h b/sys/sys/uuid.h index 7adf8b64a4a6..41f02b5db587 100644 --- a/sys/sys/uuid.h +++ b/sys/sys/uuid.h @@ -56,6 +56,8 @@ struct uuid { struct sbuf; +struct uuid *kern_uuidgen(struct uuid *, size_t); + int snprintf_uuid(char *, size_t, struct uuid *); int printf_uuid(struct uuid *); int sbuf_printf_uuid(struct sbuf *, struct uuid *); |