buffer now reads upto number in rd_buufer in userland or sends back all available data in kfifo