Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Test Your Knowledge in Computers #517
Difficulty: Medium
The most basic type of variable that can be used in a computer program is a numeric type.
True or False?
Linux & Unix Commands - Search Man Pages

bio_alloc_bioset(9) [centos man page]

BIO_ALLOC_BIOSET(9)						   The Linux VFS					       BIO_ALLOC_BIOSET(9)

bio_alloc_bioset - allocate a bio for I/O SYNOPSIS
struct bio * bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs, struct bio_set * bs); ARGUMENTS
gfp_mask the GFP_ mask given to the slab allocator nr_iovecs number of iovecs to pre-allocate bs the bio_set to allocate from. DESCRIPTION
If bs is NULL, uses kmalloc to allocate the bio; else the allocation is backed by the bs's mempool. When bs is not NULL, if __GFP_WAIT is set then bio_alloc will always be able to allocate a bio. This is due to the mempool guarantees. To make this work, callers must never allocate more than 1 bio at a time from this pool. Callers that need to allocate more than 1 bio must always submit the previously allocated bio for IO before attempting to allocate a new one. Failure to do so can cause deadlocks under memory pressure. Note that when running under generic_make_request (i.e. any block driver), bios are not submitted until after you return - see the code in generic_make_request that converts recursion into iteration, to prevent stack overflows. This would normally mean allocating multiple bios under generic_make_request would be susceptible to deadlocks, but we have deadlock avoidance code that resubmits any blocked bios from a rescuer thread. However, we do not guarantee forward progress for allocations from other mempools. Doing multiple allocations from the same mempool under generic_make_request should be avoided - instead, use bio_set's front_pad for per bio allocations. RETURNS
Pointer to new bio on success, NULL on failure. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 BIO_ALLOC_BIOSET(9)

Check Out this Related Man Page

BIO_f_base64(3) 						      OpenSSL							   BIO_f_base64(3)

BIO_f_base64 - base64 BIO filter SYNOPSIS
#include <openssl/bio.h> #include <openssl/evp.h> BIO_METHOD * BIO_f_base64(void); DESCRIPTION
BIO_f_base64() returns the base64 BIO method. This is a filter BIO that base64 encodes any data written through it and decodes any data read through it. Base64 BIOs do not support BIO_gets() or BIO_puts(). BIO_flush() on a base64 BIO that is being written through is used to signal that no more data is to be encoded: this is used to flush the final block through the BIO. The flag BIO_FLAGS_BASE64_NO_NL can be set with BIO_set_flags() to encode the data all on one line or expect the data to be all on one line. NOTES
Because of the format of base64 encoding the end of the encoded block cannot always be reliably determined. RETURN VALUES
BIO_f_base64() returns the base64 BIO method. EXAMPLES
Base64 encode the string "Hello World " and write the result to standard output: BIO *bio, *b64; char message[] = "Hello World "; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdout, BIO_NOCLOSE); bio = BIO_push(b64, bio); BIO_write(bio, message, strlen(message)); BIO_flush(bio); BIO_free_all(bio); Read Base64 encoded data from standard input and write the decoded data to standard output: BIO *bio, *b64, *bio_out; char inbuf[512]; int inlen; b64 = BIO_new(BIO_f_base64()); bio = BIO_new_fp(stdin, BIO_NOCLOSE); bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); bio = BIO_push(b64, bio); while((inlen = BIO_read(bio, inbuf, 512)) > 0) BIO_write(bio_out, inbuf, inlen); BIO_free_all(bio); BUGS
The ambiguity of EOF in base64 encoded data can cause additional data following the base64 encoded block to be misinterpreted. There should be some way of specifying a test that the BIO can perform to reliably determine EOF (for example a MIME boundary). SEE ALSO
TBA 1.0.1e 2013-02-11 BIO_f_base64(3)

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need help once again

i have a alpha server and need to know it givs me a error when i try and load the bios i think it says instalizing qlisp1020 what do i need??? (2 Replies)
Discussion started by: TheCrazzyman
2 Replies

2. BSD

UNIX -openbsd /i386

I think i have messed up with the bios or something. i am seeing this message as soon as the system boots up //////////////////////////////////////////// Password = Please Enter The System Logon: /////////////////////////////////////////// First i though that it was due to changing the... (1 Reply)
Discussion started by: hrk2006
1 Replies

3. UNIX for Dummies Questions & Answers

Save 43p bios?

Is there any way to backup the bios on a 43P-140 7043? (0 Replies)
Discussion started by: freestyle10269
0 Replies

4. UNIX for Advanced & Expert Users

bios parameter block

how can i show the contain of the bios parameter block of a file system in minix or unix or a similar os? Here are some of the things i wanna print: - Logical bytes per sector - Sector per cluster - Number of fats - Fat type :confused: (2 Replies)
Discussion started by: Esteban
2 Replies

5. UNIX for Dummies Questions & Answers

kmalloc function

will kmalloc function allocate memory from kernel space or user space? what exactly is the difference between kernel api and system call? can anyone please send me the answer? its urgent. (0 Replies)
Discussion started by:
0 Replies

6. Solaris

how to get the bios version?

I am using solaris 10 how to get the bios version? thanks (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

7. Linux

It's a puzzle

Hi, Recently I installed Fedora 9 on the following hardware - Asus A8N-SLI Deluxe motherboard bios version 1805 - 2GB twinmos ram - AMD 4400 CPU - Tagan PSU 550 W - Asus EN6200LE video card - WD 74 GB Raptor - Areca ARC-1222 raid controller - 4x 1TB Seagate Baracudas - Symbios Logic... (6 Replies)
Discussion started by: jwoude
6 Replies

8. Programming

allocate memory for the same struct: sometimes successful, sometimes failure, why

It is customary to use structs in c code. but it is suprising to obtain different results. Sometimes a pointer is returned. But a failure would appear at other attempts. e.g. struct _site { int type; char A; char B; . . ... (12 Replies)
Discussion started by: cdbug
12 Replies

9. UNIX Desktop Questions & Answers

Please Help me out with this question

. Make a new copy of mars.txt called marsx. What happens if you give the following commands when the files bio and marsx both already exist? Don't guess, try it! a) cp bio marsx b) mv bio marsx (2 Replies)
Discussion started by: rohit.katpalli
2 Replies

10. UNIX for Advanced & Expert Users

Oracle how many memory allocate really

hi... i want to find oracle allocate how many memory really.. i execute this code to list memory on unix system : ps -eo pmem,args | sort -k 1 -r -n outputs ; %mem command 12.9|ora_smon_RTX 12.9|ora_s000_RTX 12.9|ora_reco_RTX 12.9|ora_qmnc_RTX... (2 Replies)
Discussion started by: utoptas
2 Replies

11. UNIX for Advanced & Expert Users

How to figure out who created a user account?

Well, I had to open another thread. Long story but I will keep it short. Our client organization is a multinational bio-tech giant. And as it is true with all such giants, things are kind of messy when it comes to maintaining who did what. Now, my duty is to clean up the mess. One of the few... (1 Reply)
Discussion started by: admin_xor
1 Replies

12. Programming

SIGSEGV when allocate a certain size

The problem: I need to work with large arrays and after one of my structures grew in size my program started getting segmentation fault. My code where I allocate the arrays: static R1 *tarr; static R2 *rarr; proc_init_mem() { const int t_sz = sizeof(R1) *... (9 Replies)
Discussion started by: migurus
9 Replies

13. Hardware

qosmio f50-freeze when trying to update bios-black screen

Hi! I own a Qosmio f50 laptop and today i download the file from toshiba to update my bios. Everything went well until installer reaches block 16 when system freezes. I left it half an hour and then tried to power-off the pc with the button, but it dont. I unplug the ac-adaptor and the battery and... (0 Replies)
Discussion started by: giampoul
0 Replies

14. Red Hat

How to sync time with bios in rhel7?

Hi All, I deployed the rhel7 server in the bare metal hardware. I want to configure the rhel7 server to sync time with bios. I tired the below commands. Still it did not sync the time with bios. Thanks, Kalai (3 Replies)
Discussion started by: kalpeer
3 Replies

Featured Tech Videos