diff options
| author | Stephen Wade <stephen@stephenwade.me> | 2022-12-28 12:26:55 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-28 12:26:55 -0500 |
| commit | 7b1e0e83b06abb8908ca7800525ec098ea85f1df (patch) | |
| tree | 517a406b701103e5c8431f9052b4caa6cb7ce28a /blog/dev-printerfact-2021-04-17.markdown | |
| parent | 605ddfa919b13392afe5045eac098f90c8665a4e (diff) | |
| download | xesite-7b1e0e83b06abb8908ca7800525ec098ea85f1df.tar.xz xesite-7b1e0e83b06abb8908ca7800525ec098ea85f1df.zip | |
Broken links (#574)
* Replace broken link to wasmcloud.app
* Replace broken link to dumbotaku.com with the Wayback Machine
* Replace broken link to oddcode.daveamit.com with the Wayback Machine
* Fix broken link to tokipona.net
* Fix broken link to github.com/Xe/waifud
* Fix broken link to cloud.debian.org
* Replace broken link to rust-for-linux.github.io with the Wayback Machine
* Fix broken link to ohmyposh.dev
* Replace broken link to docs.vrchat.com with the Wayback Machine
* Replace broken link to learning-rust.github.io
* Fix broken links to tulpa.dev/cadey/printerfacts
* Fix broken links to github.com/Xe/nixos-configs
* Fix broken link to tulpa.dev/cadey/gitea-release
* Replace broken link to lojban.pw with the Wayback Machine
* Remove broken link to printerfacts.cetacean.club
* Remove broken links to home.cetacean.club
* Replace broken link to caddyserver.com with the Wayback Machine
Diffstat (limited to 'blog/dev-printerfact-2021-04-17.markdown')
| -rw-r--r-- | blog/dev-printerfact-2021-04-17.markdown | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/blog/dev-printerfact-2021-04-17.markdown b/blog/dev-printerfact-2021-04-17.markdown index 62f94d2..898c27b 100644 --- a/blog/dev-printerfact-2021-04-17.markdown +++ b/blog/dev-printerfact-2021-04-17.markdown @@ -41,7 +41,7 @@ At a high level to do something like this you need to have a few things: - A way to run tests to ensure that kernel is behaving cromulently - A way to be able to _repeat_ these tests on another machine to be more certain that the thing you made works more than once - + To aid in that first step, the Rust for Linux team shipped a [Nix config](https://github.com/Rust-for-Linux/nix) to let you `nix-build -A kernel` yourself a new kernel whenever you wanted. So let's do that and see what @@ -182,7 +182,7 @@ $ du -hs /nix/store/yf2a8gvaypch9p4xxbk7151x9lq2r6ia-linux-5.11 ## Ensuring Cromulence > A noble spirit embiggens the smallest man. -> +> > I've never heard of the word "embiggens" before. > > I don't know why, it's a perfectly cromulent word @@ -361,7 +361,7 @@ impl FileOperations for RustFile { println!("user attempted to read from the file!"); Ok(0) - } + } } struct PrinterFacts { @@ -466,7 +466,7 @@ impl RustFile { fn get_fact(&self) -> KernelResult<&'static str> { let mut ent = [0u8; 1]; // Mara\ declare a 1-sized array of bytes kernel::random::getrandom(&mut ent)?; // Mara\ fill it with entropy - + Ok(FACTS[ent[0] as usize % FACTS.len()]) // Mara\ return a random fact } } @@ -556,7 +556,7 @@ a_tier = [] for chara in characters: if "a" in chara: a_tier.append(chara) - + print(a_tier) ``` @@ -619,7 +619,7 @@ machine # cat: /dev/printerfact: Invalid argument ``` Oh dear. It's failing. Let's take a closer look at that -[FileOperations](https://rust-for-linux.github.io/docs/kernel/file_operations/trait.FileOperations.html) +[FileOperations](https://web.archive.org/web/20210621170531/https://rust-for-linux.github.io/docs/kernel/file_operations/trait.FileOperations.html) trait and see if there are any hints. It looks like the `declare_file_operations!` macro is setting the `TO_USE` constant somehow. Let's see what it's doing under the hood: |
