Also add kexec reboot flag to the reboot man page.
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped - Build Status
Buildable 68251 Build 65134: arc lint + arc unit
Event Timeline
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 29 | That date is from when I first started writing the man page. I'll update it when I'm ready to commit. | |
You'll also need to add the new manual to the Makefile.
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 3 | Refer to style(9). In particular, the following would be enough for this copyright header: /* * Copyright (c) 2025 Juniper Networks, Inc. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ | |
| 46 | ||
| 96 | ||
| 99 | ||
| lib/libsys/reboot.2 | ||
| 28 | You may consider bumping this date as well. | |
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 3 | "All rights reserved" is also unnecessary. From the FreeBSD Licensing Guide: "Historically, the phrase 'All Rights Reserved.' was included in all copyright notices. All the BSD releases had it, to comply with the Buenos Aires Convention of 1910 in the Americas. With the ratification of the Berne Convention in 2000 by Nicaragua, the Buenos Aires Convention — and the phrase — became obsolete. As such, the FreeBSD project recommends that new code omit the phrase and encourages existing copyright holders to remove it. In 2018, the project updated its templates to remove it." | |
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 126 | Yes it is. I'm hoping it'll be in 15.1 (a bit late to make 15.0), but will mark it 16.0 for now, since it just hit HEAD this morning. | |
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 28 | The flags argument is present for compatibility with Linux, although it currently must be 0. Unused implies it can be anything and it doesn't matter. | |
| 71 | Are there restrictions on where you can put the new kernel? | |
| 79 | What happens if I call kexec_load a second time before reboot? | |
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 71 | Good questions, which I'll try to answer in the man page as well.
| |
| 79 | Good question, I'll update the man page to reflect it. Each subsequent call to kexec_load() replaces the previously loaded image on success. On failure the previous image remains. An easy way to unload the previous image is to kexec_load() with a segment count of 0. | |
| lib/libsys/kexec_load.2 | ||
|---|---|---|
| 12 | .Lb still needs to be moved down one line to be in SYNOPSIS | |